Skip to content

Commit c9d57e6

Browse files
committed
try another backoff
Signed-off-by: Leonard Lyubich <[email protected]>
1 parent 8eeebcd commit c9d57e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/network/cache/clients.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,12 @@ func (x *Clients) initConnection(pub []byte, uri string) (*client.Client, error)
219219
grpcConn, err := grpc.NewClient(target,
220220
grpc.WithTransportCredentials(transportCreds),
221221
grpc.WithConnectParams(grpc.ConnectParams{
222-
Backoff: backoff.DefaultConfig,
222+
Backoff: backoff.Config{
223+
BaseDelay: time.Second,
224+
Multiplier: 1,
225+
Jitter: 0,
226+
MaxDelay: time.Second,
227+
},
223228
MinConnectTimeout: x.minConnTimeout,
224229
}),
225230
grpc.WithKeepaliveParams(keepalive.ClientParameters{

0 commit comments

Comments
 (0)