From d8420065899805a644490e76de1ee88dead37c77 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 9 Jul 2022 02:37:58 +0000 Subject: [PATCH] use the macro more --- web3-proxy/src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3-proxy/src/app.rs b/web3-proxy/src/app.rs index 925bd2fe..31697262 100644 --- a/web3-proxy/src/app.rs +++ b/web3-proxy/src/app.rs @@ -740,7 +740,7 @@ impl Web3ProxyApp { } "eth_syncing" => { // TODO: return a real response if all backends are syncing or if no servers in sync - let partial_response = serde_json::Value::Bool(false); + let partial_response = json!(false); let response = JsonRpcForwardedResponse::from_value(partial_response, request.id); @@ -748,7 +748,7 @@ impl Web3ProxyApp { } "net_listening" => { // TODO: only if there are some backends on balanced_rpcs? - let partial_response = serde_json::Value::Bool(true); + let partial_response = json!(true); let response = JsonRpcForwardedResponse::from_value(partial_response, request.id);