From 64f37d8bff5118c40e20e6aa0112d0806bc03d35 Mon Sep 17 00:00:00 2001 From: keyvan Date: Fri, 10 May 2024 12:16:00 -0700 Subject: [PATCH] fix: pre-commit --- src/agent/solana/exporter.rs | 7 +++---- src/agent/solana/oracle.rs | 7 +++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/agent/solana/exporter.rs b/src/agent/solana/exporter.rs index 43fba06..1429b8c 100644 --- a/src/agent/solana/exporter.rs +++ b/src/agent/solana/exporter.rs @@ -11,9 +11,9 @@ use { oracle::PricePublishingMetadata, }, crate::agent::remote_keypair_loader::{ - KeypairRequest, - RemoteKeypairLoader, - }, + KeypairRequest, + RemoteKeypairLoader, + }, anyhow::{ anyhow, Context, @@ -66,7 +66,6 @@ use { sync::{ mpsc::{ self, - error::TryRecvError, Sender, }, oneshot, diff --git a/src/agent/solana/oracle.rs b/src/agent/solana/oracle.rs index 6f29807..9bcda93 100644 --- a/src/agent/solana/oracle.rs +++ b/src/agent/solana/oracle.rs @@ -214,7 +214,9 @@ pub fn spawn_oracle( wss_url: &str, rpc_timeout: Duration, global_store_update_tx: mpsc::Sender, - publisher_permissions_tx: watch::Sender>>, + publisher_permissions_tx: watch::Sender< + HashMap>, + >, key_store: KeyStore, logger: Logger, ) -> Vec> { @@ -429,7 +431,8 @@ struct Poller { data_tx: mpsc::Sender, /// Updates about permissioned price accounts from oracle to exporter - publisher_permissions_tx: watch::Sender>>, + publisher_permissions_tx: + watch::Sender>>, /// The RPC client to use to poll data from the RPC node rpc_client: RpcClient,