Skip to content

Commit

Permalink
geyser: change plugin name to {name}-{version}
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Jan 8, 2024
1 parent 95f0c3f commit 1c0c87d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ use {
GeyserPlugin, GeyserPluginError, ReplicaAccountInfoVersions, ReplicaBlockInfoVersions,
ReplicaTransactionInfoVersions, Result as PluginResult, SlotStatus,
},
std::sync::atomic::{AtomicUsize, Ordering},
std::{
concat, env,
sync::atomic::{AtomicUsize, Ordering},
},
tokio::{
runtime::{Builder, Runtime},
time::Duration,
Expand Down Expand Up @@ -39,7 +42,7 @@ impl Plugin {

impl GeyserPlugin for Plugin {
fn name(&self) -> &'static str {
"GeyserPluginSqs"
concat!(env!("CARGO_PKG_NAME"), "-", env!("CARGO_PKG_VERSION"))
}

fn on_load(&mut self, config_file: &str) -> PluginResult<()> {
Expand Down

0 comments on commit 1c0c87d

Please sign in to comment.