This commit is contained in:
John Smith
2021-11-27 21:05:36 -05:00
parent 45489d0e9c
commit ea8c75a29f
13 changed files with 37 additions and 37 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ impl NetworkManager {
pub fn new(config: VeilidConfig, table_store: TableStore, crypto: Crypto) -> Self {
Self {
config: config.clone(),
config,
table_store,
crypto,
inner: Arc::new(Mutex::new(Self::new_inner())),
@@ -269,7 +269,7 @@ impl NetworkManager {
.lock()
.connection_add_channel_tx
.as_ref()
.ok_or("connection channel isn't open yet".to_owned())?
.ok_or_else(|| "connection channel isn't open yet".to_owned())?
.clone();
let this = self.clone();
let receiver_loop_future = Self::process_connection(this, descriptor, conn);