Skip to content

Commit

Permalink
Update log messages in plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Garfield committed Oct 29, 2022
1 parent 6c1f30c commit 545f677
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions plugin/src/executors/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl TxExecutor {
// Exit early if we are not in the worker pool.
let r_pool_positions = self.observers.network.pool_positions.read().await;
let thread_pool = r_pool_positions.thread_pool.clone();
info!("Pool position: {:#?}", thread_pool.current_position);
drop(r_pool_positions);
if thread_pool.current_position.is_none() && !thread_pool.workers.is_empty() {
return Err(GeyserPluginError::Custom(
Expand Down
4 changes: 0 additions & 4 deletions plugin/src/observers/network.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use log::info;

use {
crate::config::PluginConfig,
clockwork_client::network::objects::{Pool, Registry, Snapshot, SnapshotFrame, Worker},
Expand Down Expand Up @@ -84,8 +82,6 @@ impl NetworkObserver {
_ => {}
}

info!("Pool positions: {}", w_pool_positions);

drop(w_pool_positions);
Ok(())
})
Expand Down

0 comments on commit 545f677

Please sign in to comment.