From 24cdc0e7c145366c175da636c15b373e1a62b3b8 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 3 May 2022 05:22:07 +0000 Subject: [PATCH] update todo --- src/connections.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/connections.rs b/src/connections.rs index 4392fe85..5f3ab44c 100644 --- a/src/connections.rs +++ b/src/connections.rs @@ -178,8 +178,7 @@ impl Web3Connections { rpc: &Arc, new_block: u64, ) -> anyhow::Result<()> { - // TODO: is RwLock the best type for this? i don't think so anymore. we probably want to use channels and have a single writer using a left-right or arcswap or something - // TODO: start with a read lock? + // TODO: try a left_right instead of an ArcSwap. let synced_connections = self.synced_connections.load(); // should we load new_block here?