update todo
This commit is contained in:
parent
b9f4a9437d
commit
24cdc0e7c1
@ -178,8 +178,7 @@ impl Web3Connections {
|
|||||||
rpc: &Arc<Web3Connection>,
|
rpc: &Arc<Web3Connection>,
|
||||||
new_block: u64,
|
new_block: u64,
|
||||||
) -> anyhow::Result<()> {
|
) -> 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: try a left_right instead of an ArcSwap.
|
||||||
// TODO: start with a read lock?
|
|
||||||
let synced_connections = self.synced_connections.load();
|
let synced_connections = self.synced_connections.load();
|
||||||
|
|
||||||
// should we load new_block here?
|
// should we load new_block here?
|
||||||
|
Loading…
Reference in New Issue
Block a user