Skip to content

Commit b14c18b

Browse files
author
Richard Patel
authored
tag 0.1.3+solana.1.9.15
1 parent 44ec9e7 commit b14c18b

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "solana-accountsdb-plugin-kafka"
33
description = "Solana AccountsDb plugin for Kafka"
44
authors = ["Blockdaemon"]
5-
version = "0.1.3+solana.1.9.12"
5+
version = "0.1.3+solana.1.9.15"
66
edition = "2021"
77
repository = "https://github.com/Blockdaemon/solana-accountsdb-plugin-kafka"
88
license = "Apache-2.0"
@@ -13,9 +13,9 @@ crate-type = ["cdylib", "rlib"]
1313
[dependencies]
1414
prost = "0.10"
1515
rdkafka = { version = "0.28", features = ["ssl-vendored", "sasl"] }
16-
solana-accountsdb-plugin-interface = { version = "=1.9.12" }
17-
solana-logger = { version = "=1.9.12" }
18-
solana-program = { version = "=1.9.12" }
16+
solana-geyser-plugin-interface = { version = "=1.9.15" }
17+
solana-logger = { version = "=1.9.15" }
18+
solana-program = { version = "=1.9.15" }
1919
log = "0.4"
2020
serde_json = "1.0"
2121
serde = { version = "1.0", features = ["derive"] }

src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ use {
2020
ClientConfig,
2121
},
2222
serde::Deserialize,
23-
solana_accountsdb_plugin_interface::accountsdb_plugin_interface::{
24-
AccountsDbPluginError, Result as PluginResult,
23+
solana_geyser_plugin_interface::geyser_plugin_interface::{
24+
GeyserPluginError, Result as PluginResult,
2525
},
2626
std::{collections::HashMap, fs::File, path::Path},
2727
};
@@ -66,7 +66,7 @@ impl Config {
6666
pub fn read_from<P: AsRef<Path>>(config_path: P) -> PluginResult<Self> {
6767
let file = File::open(config_path)?;
6868
let mut this: Self = serde_json::from_reader(file)
69-
.map_err(|e| AccountsDbPluginError::ConfigFileReadError { msg: e.to_string() })?;
69+
.map_err(|e| GeyserPluginError::ConfigFileReadError { msg: e.to_string() })?;
7070
this.fill_defaults();
7171
Ok(this)
7272
}

src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
use solana_accountsdb_plugin_interface::accountsdb_plugin_interface::SlotStatus as PluginSlotStatus;
15+
use solana_geyser_plugin_interface::geyser_plugin_interface::SlotStatus as PluginSlotStatus;
1616

1717
include!(concat!(
1818
env!("OUT_DIR"),

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
use solana_accountsdb_plugin_interface::accountsdb_plugin_interface::AccountsDbPlugin;
15+
use solana_geyser_plugin_interface::geyser_plugin_interface::GeyserPlugin;
1616

1717
mod config;
1818
mod event;
@@ -32,12 +32,12 @@ pub use {
3232
#[allow(improper_ctypes_definitions)]
3333
/// # Safety
3434
///
35-
/// This function returns a pointer to the Kafka Plugin box implementing trait AccountsDbPlugin.
35+
/// This function returns a pointer to the Kafka Plugin box implementing trait GeyserPlugin.
3636
///
3737
/// The Solana validator and this plugin must be compiled with the same Rust compiler version and Solana core version.
3838
/// Loading this plugin with mismatching versions is undefined behavior and will likely cause memory corruption.
39-
pub unsafe extern "C" fn _create_plugin() -> *mut dyn AccountsDbPlugin {
39+
pub unsafe extern "C" fn _create_plugin() -> *mut dyn GeyserPlugin {
4040
let plugin = KafkaPlugin::new();
41-
let plugin: Box<dyn AccountsDbPlugin> = Box::new(plugin);
41+
let plugin: Box<dyn GeyserPlugin> = Box::new(plugin);
4242
Box::into_raw(plugin)
4343
}

src/plugin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use {
1717
log::info,
1818
rdkafka::util::get_rdkafka_version,
1919
simple_error::simple_error,
20-
solana_accountsdb_plugin_interface::accountsdb_plugin_interface::{
21-
AccountsDbPlugin, AccountsDbPluginError as PluginError, ReplicaAccountInfo,
20+
solana_geyser_plugin_interface::geyser_plugin_interface::{
21+
GeyserPlugin, GeyserPluginError as PluginError, ReplicaAccountInfo,
2222
ReplicaAccountInfoVersions, Result as PluginResult, SlotStatus as PluginSlotStatus,
2323
},
2424
std::fmt::{Debug, Formatter},
@@ -37,7 +37,7 @@ impl Debug for KafkaPlugin {
3737
}
3838
}
3939

40-
impl AccountsDbPlugin for KafkaPlugin {
40+
impl GeyserPlugin for KafkaPlugin {
4141
fn name(&self) -> &'static str {
4242
"KafkaPlugin"
4343
}

0 commit comments

Comments
 (0)