From 4d50f79f1c9de480af225f7d1b020b5235ee6466 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Thu, 7 Mar 2024 09:41:59 +0000 Subject: [PATCH] node: remove unused timeout The timeout was never being used, so it is being removed for the time being. Signed-off-by: Fintan Halpenny X-Clacks-Overhead: GNU Terry Pratchett --- radicle-node/src/runtime.rs | 3 +-- radicle-node/src/worker.rs | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/radicle-node/src/runtime.rs b/radicle-node/src/runtime.rs index 97cdab94..bd6be433 100644 --- a/radicle-node/src/runtime.rs +++ b/radicle-node/src/runtime.rs @@ -4,7 +4,7 @@ pub mod thread; use std::os::unix::net::UnixListener; use std::path::PathBuf; use std::sync::{Arc, Mutex}; -use std::{fs, io, net, time}; +use std::{fs, io, net}; use crossbeam_channel as chan; use cyphernet::Ecdh; @@ -262,7 +262,6 @@ impl Runtime { cobs_cache, worker::Config { capacity: 8, - timeout: time::Duration::from_secs(9), storage: storage.clone(), fetch, policy, diff --git a/radicle-node/src/worker.rs b/radicle-node/src/worker.rs index 41dbc7a4..2db99c89 100644 --- a/radicle-node/src/worker.rs +++ b/radicle-node/src/worker.rs @@ -29,8 +29,6 @@ pub use channels::{ChannelEvent, Channels}; pub struct Config { /// Number of worker threads. pub capacity: usize, - /// Timeout for all operations. - pub timeout: time::Duration, /// Git storage. pub storage: Storage, /// Configuration for performing fetched.