Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle-node: switch SystemTime usage with LocalTime
✗ CI failure Adrian Duke committed 3 months ago
commit de89c3c33e65d26cb67ac33c5911f8ccfa495109
parent 36a474bd6ff960b9618cd6d72a8e202f3d275aa0
1 failed (1 total) View logs
1 file changed +3 -3
modified crates/radicle-node/src/wire.rs
@@ -5,7 +5,7 @@ use std::collections::hash_map::Entry;
use std::collections::VecDeque;
use std::fmt::Debug;
use std::sync::Arc;
-
use std::time::{Instant, SystemTime};
+
use std::time::Instant;
use std::{io, net, time};

use crossbeam_channel as chan;
@@ -13,6 +13,7 @@ use cyphernet::addr::{HostName, InetHost, NetAddr};
use cyphernet::encrypt::noise::{HandshakePattern, Keyset, NoiseState};
use cyphernet::proxy::socks5;
use cyphernet::{Digest, EcSk, Ecdh, Sha256};
+
use localtime::LocalTime;
use mio::net::TcpStream;
use radicle::node::device::Device;

@@ -510,8 +511,7 @@ where
            .sum();
        self.metrics.worker_queue_size = self.worker.len();

-
        self.service
-
            .tick(SystemTime::now().try_into().unwrap(), &self.metrics);
+
        self.service.tick(LocalTime::now(), &self.metrics);
    }

    fn timer_reacted(&mut self) {