Skip to content

Commit

Permalink
fix: decrease connection timeout in sonmmon (#1630)
Browse files Browse the repository at this point in the history
Internals:
We're connecting to a worker we use the full address (eth@ip:port) and shouldn't go through rendezvous\relay, probably, we can use a shorter timeout to obtain the first status quickly. This change also should decrease time to show first sonmmon screen after reboot.
  • Loading branch information
ALex Nikonov authored and 3Hren committed Oct 11, 2018
1 parent 9b5c621 commit 6f8f28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sonmmon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (w *WorkerStatus) waitFirst(ctx context.Context, log *zap.Logger, cc *grpc.
}

func (w *WorkerStatus) update(ctx context.Context, cc *grpc.ClientConn, addr string) error {
ctx, cancel := context.WithTimeout(ctx, 90*time.Second)
ctx, cancel := context.WithTimeout(ctx, 20*time.Second)
defer cancel()

client := sonm.NewWorkerManagementClient(cc)
Expand Down

0 comments on commit 6f8f28f

Please sign in to comment.