|
|
@ -96,21 +96,20 @@ func TestDepositServer_Deposit(t *testing.T) {
|
|
|
|
return invoker(ctx, method, req, reply, cc, opts...)
|
|
|
|
return invoker(ctx, method, req, reply, cc, opts...)
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// TODO: enable it in v1.2.4
|
|
|
|
retryClient := MustNewClient(
|
|
|
|
// retryClient := MustNewClient(
|
|
|
|
RpcClientConf{
|
|
|
|
// RpcClientConf{
|
|
|
|
Endpoints: []string{"foo"},
|
|
|
|
// Endpoints: []string{"foo"},
|
|
|
|
App: "foo",
|
|
|
|
// App: "foo",
|
|
|
|
Token: "bar",
|
|
|
|
// Token: "bar",
|
|
|
|
Timeout: 1000,
|
|
|
|
// Timeout: 1000,
|
|
|
|
Retry: true,
|
|
|
|
// Retry: true,
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
WithDialOption(grpc.WithContextDialer(dialer())),
|
|
|
|
// WithDialOption(grpc.WithContextDialer(dialer())),
|
|
|
|
WithUnaryClientInterceptor(func(ctx context.Context, method string, req, reply interface{},
|
|
|
|
// WithUnaryClientInterceptor(func(ctx context.Context, method string, req, reply interface{},
|
|
|
|
cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
|
|
|
|
// cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
|
|
|
|
return invoker(ctx, method, req, reply, cc, opts...)
|
|
|
|
// return invoker(ctx, method, req, reply, cc, opts...)
|
|
|
|
}),
|
|
|
|
// }),
|
|
|
|
)
|
|
|
|
// )
|
|
|
|
|
|
|
|
tarConfClient := MustNewClient(
|
|
|
|
tarConfClient := MustNewClient(
|
|
|
|
RpcClientConf{
|
|
|
|
RpcClientConf{
|
|
|
|
Target: "foo",
|
|
|
|
Target: "foo",
|
|
|
@ -135,8 +134,7 @@ func TestDepositServer_Deposit(t *testing.T) {
|
|
|
|
clients := []Client{
|
|
|
|
clients := []Client{
|
|
|
|
directClient,
|
|
|
|
directClient,
|
|
|
|
nonBlockClient,
|
|
|
|
nonBlockClient,
|
|
|
|
// TODO: enable it in v1.2.4
|
|
|
|
retryClient,
|
|
|
|
// retryClient,
|
|
|
|
|
|
|
|
tarConfClient,
|
|
|
|
tarConfClient,
|
|
|
|
targetClient,
|
|
|
|
targetClient,
|
|
|
|
}
|
|
|
|
}
|
|
|
|