diff --git a/geyser-plugin-manager/src/geyser_plugin_manager.rs b/geyser-plugin-manager/src/geyser_plugin_manager.rs index 2f55978ca5999d..08354df0440ba2 100644 --- a/geyser-plugin-manager/src/geyser_plugin_manager.rs +++ b/geyser-plugin-manager/src/geyser_plugin_manager.rs @@ -60,12 +60,6 @@ pub struct GeyserPluginManager { } impl GeyserPluginManager { - pub fn new() -> Self { - GeyserPluginManager { - plugins: Vec::default(), - } - } - /// Unload all plugins and loaded plugin libraries, making sure to fire /// their `on_plugin_unload()` methods so they can do any necessary cleanup. pub fn unload(&mut self) { @@ -497,7 +491,7 @@ mod tests { #[test] fn test_geyser_reload() { // Initialize empty manager - let plugin_manager = Arc::new(RwLock::new(GeyserPluginManager::new())); + let plugin_manager = Arc::new(RwLock::new(GeyserPluginManager::default())); // No plugins are loaded, this should fail let mut plugin_manager_lock = plugin_manager.write().unwrap(); @@ -536,7 +530,7 @@ mod tests { #[test] fn test_plugin_list() { // Initialize empty manager - let plugin_manager = Arc::new(RwLock::new(GeyserPluginManager::new())); + let plugin_manager = Arc::new(RwLock::new(GeyserPluginManager::default())); let mut plugin_manager_lock = plugin_manager.write().unwrap(); // Load two plugins @@ -558,7 +552,7 @@ mod tests { #[test] fn test_plugin_load_unload() { // Initialize empty manager - let plugin_manager = Arc::new(RwLock::new(GeyserPluginManager::new())); + let plugin_manager = Arc::new(RwLock::new(GeyserPluginManager::default())); let mut plugin_manager_lock = plugin_manager.write().unwrap(); // Load rpc call diff --git a/geyser-plugin-manager/src/geyser_plugin_service.rs b/geyser-plugin-manager/src/geyser_plugin_service.rs index b866470a7e0717..29c9cc03a46f56 100644 --- a/geyser-plugin-manager/src/geyser_plugin_service.rs +++ b/geyser-plugin-manager/src/geyser_plugin_service.rs @@ -79,7 +79,7 @@ impl GeyserPluginService { )>, ) -> Result { info!("Starting GeyserPluginService from config files: {geyser_plugin_config_files:?}"); - let mut plugin_manager = GeyserPluginManager::new(); + let mut plugin_manager = GeyserPluginManager::default(); for geyser_plugin_config_file in geyser_plugin_config_files { Self::load_plugin(&mut plugin_manager, geyser_plugin_config_file)?; diff --git a/test-validator/src/lib.rs b/test-validator/src/lib.rs index cb40bea40f9aa0..cede3bacdbc785 100644 --- a/test-validator/src/lib.rs +++ b/test-validator/src/lib.rs @@ -172,7 +172,7 @@ impl Default for TestValidatorGenesis { log_messages_bytes_limit: Option::::default(), transaction_account_lock_limit: Option::::default(), tpu_enable_udp: DEFAULT_TPU_ENABLE_UDP, - geyser_plugin_manager: Arc::new(RwLock::new(GeyserPluginManager::new())), + geyser_plugin_manager: Arc::new(RwLock::new(GeyserPluginManager::default())), admin_rpc_service_post_init: Arc::>>::default(), }