Skip to content

Commit

Permalink
fix: pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvankhademi committed May 10, 2024
1 parent d68605f commit 64f37d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/agent/solana/exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ use {
oracle::PricePublishingMetadata,
},
crate::agent::remote_keypair_loader::{
KeypairRequest,
RemoteKeypairLoader,
},
KeypairRequest,
RemoteKeypairLoader,
},
anyhow::{
anyhow,
Context,
Expand Down Expand Up @@ -66,7 +66,6 @@ use {
sync::{
mpsc::{
self,
error::TryRecvError,
Sender,
},
oneshot,
Expand Down
7 changes: 5 additions & 2 deletions src/agent/solana/oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ pub fn spawn_oracle(
wss_url: &str,
rpc_timeout: Duration,
global_store_update_tx: mpsc::Sender<global::Update>,
publisher_permissions_tx: watch::Sender<HashMap<Pubkey, HashMap<Pubkey, PricePublishingMetadata>>>,
publisher_permissions_tx: watch::Sender<
HashMap<Pubkey, HashMap<Pubkey, PricePublishingMetadata>>,
>,
key_store: KeyStore,
logger: Logger,
) -> Vec<JoinHandle<()>> {
Expand Down Expand Up @@ -429,7 +431,8 @@ struct Poller {
data_tx: mpsc::Sender<Data>,

/// Updates about permissioned price accounts from oracle to exporter
publisher_permissions_tx: watch::Sender<HashMap<Pubkey, HashMap<Pubkey, PricePublishingMetadata>>>,
publisher_permissions_tx:
watch::Sender<HashMap<Pubkey, HashMap<Pubkey, PricePublishingMetadata>>>,

/// The RPC client to use to poll data from the RPC node
rpc_client: RpcClient,
Expand Down

0 comments on commit 64f37d8

Please sign in to comment.