Browse Source

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

Refs #5550
pull/5647/head
Anton Kaliaev 4 years ago
committed by GitHub
parent
commit
af645ac778
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
}
// Reset pingTimer to avoid sending unnecessary pings.
sl.pingTimer.Reset(sl.pingInterval)
return &res, nil
}


Loading…
Cancel
Save