node: Use `std::time` for reactor and wire
This reduces the exposure to the localtime crate, using
std instead.
3 files changed
+52
-51
9bcdd353
→
e404f103
modified crates/radicle-node/src/reactor.rs
@@ -10,11 +10,10 @@ use std::fmt::{Debug, Display, Formatter};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -212,7 +211,7 @@ pub trait ReactionHandler: Send + Iterator<Item = Action<Self::Listener, Self::T
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -227,7 +226,7 @@ pub trait ReactionHandler: Send + Iterator<Item = Action<Self::Listener, Self::T
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -235,7 +234,7 @@ pub trait ReactionHandler: Send + Iterator<Item = Action<Self::Listener, Self::T
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -372,7 +371,7 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -388,12 +387,12 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -404,7 +403,9 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -420,14 +421,14 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -449,7 +450,7 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -470,7 +471,8 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -488,13 +490,13 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -504,7 +506,7 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -562,7 +564,7 @@ impl<H: ReactionHandler> Runtime<H> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-node/src/reactor/timer.rs
@@ -1,13 +1,12 @@
| - | |
|
|
| + | |
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -31,32 +30,32 @@ impl Timer {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -72,12 +71,12 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -85,7 +84,7 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -94,13 +93,13 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -108,17 +107,17 @@ mod tests {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-node/src/wire.rs
@@ -5,6 +5,7 @@ use std::collections::hash_map::Entry;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -12,7 +13,6 @@ use cyphernet::addr::{HostName, InetHost, NetAddr};
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -313,6 +313,8 @@ pub(crate) struct Wire<D, S, G: crypto::signature::Signer<crypto::Signature> + E
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -335,9 +337,14 @@ where
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -496,7 +503,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -509,10 +516,8 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -523,7 +528,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -587,12 +592,7 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|