node: Do not mix monotonic and system time
The struct Epoch introduced in e404f1038f461264f9395742ef74f5b710be
inadvertently made radicle-node suffer from
https://github.com/rust-lang/rust/issues/87906.
That is, updating of the “current time” was skewed way more than expected by a slowly ticking monotonic clock. Such slow ticking can be caused by suspending the system.
2 files changed
+4
-40
58305cda
→
4a5a51e6
modified crates/radicle-node/src/reactor.rs
@@ -211,7 +211,7 @@ pub trait ReactionHandler: Send + Iterator<Item = Action<Self::Listener, Self::T
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -387,8 +387,8 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| + | |
|
|
| - | |
|
|
|
|
|
modified crates/radicle-node/src/wire.rs
@@ -291,35 +291,6 @@ impl Peers {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -342,8 +313,6 @@ pub(crate) struct Wire<D, S, G: crypto::signature::Signer<crypto::Signature> + E
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -366,14 +335,9 @@ where
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -532,7 +496,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -546,7 +510,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|