From 44752cad2f7c117bd8b02b328f4116aaee318b85 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Mon, 8 Jan 2024 18:46:34 -0500 Subject: [PATCH] geyser: change plugin name to {name}-{version} (#71) --- src/plugin.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugin.rs b/src/plugin.rs index ca88a7b..46bffb9 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -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, @@ -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<()> {