From 1c9a0cf05afd90d7cc0bbdd1045e6f88b9c29e17 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Fri, 5 Jan 2024 11:10:49 -0500 Subject: [PATCH] geyser: change plugin name to `{name}-{version}` (#270) --- CHANGELOG.md | 2 ++ yellowstone-grpc-geyser/src/plugin.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4e62069..a8ae8c62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ The minor version will be incremented upon a breaking change and the patch versi ### Breaking +- geyser: change plugin name to `{name}-{version}` ([#270](https://github.com/rpcpool/yellowstone-grpc/pull/270)) + ## 2023-12-08 - yellowstone-grpc-tools-1.0.0-rc.9+solana.1.17.6 diff --git a/yellowstone-grpc-geyser/src/plugin.rs b/yellowstone-grpc-geyser/src/plugin.rs index d720649e..a28c4e1f 100644 --- a/yellowstone-grpc-geyser/src/plugin.rs +++ b/yellowstone-grpc-geyser/src/plugin.rs @@ -10,6 +10,7 @@ use { SlotStatus, }, std::{ + concat, env, sync::{ atomic::{AtomicUsize, Ordering}, Arc, @@ -56,7 +57,7 @@ impl Plugin { impl GeyserPlugin for Plugin { fn name(&self) -> &'static str { - "GeyserGrpcPublic" + concat!(env!("CARGO_PKG_NAME"), "-", env!("CARGO_PKG_VERSION")) } fn on_load(&mut self, config_file: &str) -> PluginResult<()> {