feat: support grpc client keepalive config (#2950)

This commit is contained in:
Kevin Wan
2023-03-03 23:40:17 +08:00
committed by kevin
parent 265a24ac6d
commit d41e542c92
3 changed files with 34 additions and 16 deletions

View File

@@ -113,10 +113,11 @@ func TestDepositServer_Deposit(t *testing.T) {
)
tarConfClient := MustNewClient(
RpcClientConf{
Target: "foo",
App: "foo",
Token: "bar",
Timeout: 1000,
Target: "foo",
App: "foo",
Token: "bar",
Timeout: 1000,
KeepaliveTime: time.Second * 15,
Middlewares: ClientMiddlewaresConf{
Trace: true,
Duration: true,