From 18a2d72b2c96a87c4bd6a3922ba0fb5569c255c8 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sun, 5 Jun 2022 20:26:27 +0000 Subject: [PATCH] get instead of to_string --- web3-proxy/src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3-proxy/src/app.rs b/web3-proxy/src/app.rs index ab23b868..164e8444 100644 --- a/web3-proxy/src/app.rs +++ b/web3-proxy/src/app.rs @@ -158,7 +158,7 @@ impl Web3ProxyApp { let head_block_receiver = self.head_block_receiver.clone(); let subscription_id = subscription_id.clone(); - if payload.params.as_deref().unwrap().to_string() == r#"["newHeads"]"# { + if payload.params.as_deref().unwrap().get() == r#"["newHeads"]"# { info!("received new heads subscription"); async move { let mut head_block_receiver = Abortable::new(