From 79f033e829734432aabed573992ca17db5680288 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 19 Jul 2022 04:24:16 +0000 Subject: [PATCH] one less clone --- web3-proxy/src/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3-proxy/src/connection.rs b/web3-proxy/src/connection.rs index ee1578ca..f66ce974 100644 --- a/web3-proxy/src/connection.rs +++ b/web3-proxy/src/connection.rs @@ -365,7 +365,7 @@ impl Web3Connection { reconnect: bool, ) -> anyhow::Result<()> { loop { - let http_interval_receiver = http_interval_sender.clone().map(|x| x.subscribe()); + let http_interval_receiver = http_interval_sender.as_ref().map(|x| x.subscribe()); let mut futures = vec![];