From 058cd511a8ccef696e540de89f7dccfb2dca9fad Mon Sep 17 00:00:00 2001 From: soundsonacid Date: Thu, 21 Mar 2024 19:48:48 -0500 Subject: [PATCH] remove duplicate --- src/oraclemap.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/oraclemap.rs b/src/oraclemap.rs index 21475f4..7d01f35 100644 --- a/src/oraclemap.rs +++ b/src/oraclemap.rs @@ -53,10 +53,6 @@ impl OracleMap { all_oracles.extend(perp_oracles.clone()); all_oracles.extend(spot_oracles.clone()); - let mut all_oracles = vec![]; - all_oracles.extend(perp_oracles.iter().cloned()); - all_oracles.extend(spot_oracles.iter().cloned()); - let oracle_infos_map: DashMap<_, _> = all_oracles .iter() .map(|(_, pubkey, oracle_source)| (*pubkey, *oracle_source))