mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 11:55:42 +03:00
fixed bug in loop delay
This commit is contained in:
@@ -133,7 +133,7 @@ func (r *rpcHandler) handleAcceptErr(err error, ctx context.Context) {
|
||||
r.logger.Error("failed to accept RPC conn", "error", err, "delay", r.acceptLoopDelay)
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
case <-time.After(maxAcceptLoopDelay):
|
||||
case <-time.After(r.acceptLoopDelay):
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user