You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a republisher. Following the instructions for CAS in the publish() method, I resolve the most recent packet first before I publish the packet again.
Problem: publishing fails randomly even though no newer packet has been published. See this test which reproduces the problem.
Output:
0 Ok
1 Ok
2 Ok
3 Failed to publish packet. Compare and swap failed; there is a more recent SignedPacket than the one seen before publishing
thread 'publisher::tests::republish_cas_test' panicked at pkarr-publisher/src/publisher.rs:197:17:
The text was updated successfully, but these errors were encountered:
This turns out to be a bug with how the cas is sent to relays as an HTTP Date, which doesn't have enough resolution (seconds instead of microseconds). Still thinking if I can salvage If-Unmodified-Since or if we have to use a custom header.
I am building a republisher. Following the instructions for CAS in the
publish()
method, I resolve the most recent packet first before I publish the packet again.Problem: publishing fails randomly even though no newer packet has been published. See this test which reproduces the problem.
Output:
The text was updated successfully, but these errors were encountered: