superfly / corrosion

Gossip-based service discovery (and more) for large distributed systems.
https://superfly.github.io/corrosion/
Apache License 2.0
718 stars 22 forks source link

Store and use last seen empty timestamp when requesting for empties #245

Closed somtochiama closed 2 months ago

somtochiama commented 3 months ago

When a node processes empties slowly, we can end up requesting already received empties that are still in the buffer. This pull request adds a field to the Members struct to store the last received empties timestamp and use that instead when requesting so we would not request an empty that we already have.