xrpscan / hermes

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

fetch lock #25

Closed shortthefomo closed 7 months ago

shortthefomo commented 2 years ago

Here we are making sure there is no existing connection on the listener of the 'poll' event similar to the _fetching lock i was implementing lower down.

This implementation uses the existing object that was put in place and moves it down one level. Reason is to be sure when this fires it only happens once. Maybe later another event fires this and that lock in its current position will be skipped.