From 159fef9e8d655da04fe52f563f3512b6feedba6a Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 6 Oct 2023 18:54:20 -0700 Subject: [PATCH] include ws_url in hash --- web3_proxy/src/rpcs/one.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web3_proxy/src/rpcs/one.rs b/web3_proxy/src/rpcs/one.rs index 71030e68..b415549d 100644 --- a/web3_proxy/src/rpcs/one.rs +++ b/web3_proxy/src/rpcs/one.rs @@ -1154,15 +1154,14 @@ impl Hash for Web3Rpc { fn hash(&self, state: &mut H) { // do not include automatic block limit because it can change // do not include tier because it can change + self.backup.hash(state); self.created_at.hash(state); self.display_name.hash(state); self.name.hash(state); - // TODO: url does NOT include the authorization data. i think created_at should protect us if auth changes without anything else self.http_url.hash(state); - // TODO: figure out how to get the url for the ws provider - // self.ws_provider.map(|x| x.url()).hash(state); + self.ws_url.hash(state); // TODO: don't include soft_limit if we change them to be dynamic self.soft_limit.hash(state);