Browse Source

privval: reset pingTimer to avoid sending unnecessary pings (#5642) (#5668)

Refs #5550
pull/5669/head
Anton Kaliaev 4 years ago
committed by GitHub
parent
commit
e0cf94f5b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      privval/signer_listener_endpoint.go

+ 3
- 0
privval/signer_listener_endpoint.go View File

@ -123,6 +123,9 @@ func (sl *SignerListenerEndpoint) SendRequest(request privvalproto.Message) (*pr
return nil, err return nil, err
} }
// Reset pingTimer to avoid sending unnecessary pings.
sl.pingTimer.Reset(sl.pingInterval)
return &res, nil return &res, nil
} }


Loading…
Cancel
Save