xrpscan / hermes

Project Hermes: XRP Ledger Validation message service
https://xrpscan.com
MIT License
6 stars 4 forks source link

Add a lock to ensure single gRPC client connection #2

Closed pkcs8 closed 2 years ago

pkcs8 commented 2 years ago

setInterval(pollAllPeers, ENV.PEERSYNC_POLL_INTERVAL, peerManager) in peersync processor would keep starting new connections, even if the previous one is active. Added a lock to ensure there's only one client connection per peer.

pkcs8 commented 2 years ago

Lock added