Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkman committed May 22, 2024
1 parent fc38910 commit 695691a
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions server/src/geyser_grpc_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ pub struct PluginData {

/// Highest slot that an account write has been processed for thus far.
highest_write_slot: Arc<AtomicU64>,

is_startup_completed: AtomicBool,
ignore_startup_updates: bool,
}

#[derive(Default)]
Expand All @@ -74,7 +71,6 @@ pub struct PluginConfig {
pub slot_update_buffer_size: usize,
pub block_update_buffer_size: usize,
pub transaction_update_buffer_size: usize,
pub skip_startup_stream: Option<bool>,
}

impl GeyserPlugin for GeyserGrpcPlugin {
Expand Down Expand Up @@ -154,9 +150,6 @@ impl GeyserPlugin for GeyserGrpcPlugin {
block_update_sender,
transaction_update_sender,
highest_write_slot,
is_startup_completed: AtomicBool::new(false),
// don't skip startup to keep backwards compatability
ignore_startup_updates: config.skip_startup_stream.unwrap_or(false),
});
info!("plugin data initialized");

Expand All @@ -173,15 +166,6 @@ impl GeyserPlugin for GeyserGrpcPlugin {
data.runtime.shutdown_background();
}

fn notify_end_of_startup(&self) -> PluginResult<()> {
self.data
.as_ref()
.unwrap()
.is_startup_completed
.store(true, Ordering::Relaxed);
Ok(())
}

fn update_account(
&self,
account: ReplicaAccountInfoVersions,
Expand Down Expand Up @@ -286,6 +270,10 @@ impl GeyserPlugin for GeyserGrpcPlugin {
}
}

fn notify_end_of_startup(&self) -> PluginResult<()> {
Ok(())
}

fn update_slot_status(
&self,
slot: u64,
Expand Down

0 comments on commit 695691a

Please sign in to comment.