feat: support grpc client keepalive config (#2950)

This commit is contained in:
Kevin Wan
2023-03-03 23:40:17 +08:00
committed by GitHub
parent a40d8b0684
commit dc5b8dd716
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,