bitwalker / swarm

Easy clustering, registration, and distribution of worker processes for Erlang/Elixir
MIT License
1.19k stars 102 forks source link

Fixed ITC peek operation #77

Closed tschmittni closed 6 years ago

tschmittni commented 6 years ago

The Interval Tree Clock implementation returns an invalid structure for peeked clocks. Clock.peek() should only return zero identity with all the events. This change makes it possible to compare and join peeked remote clocks.

bitwalker commented 6 years ago

Thanks! I appreciate the extra eyes on this!