server implementation on plugins
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use voxa_server::{export_plugin, logger, plugin::Plugin};
|
||||
use std::sync::Arc;
|
||||
use voxa_server::{Server, export_plugin, logger, plugin::Plugin};
|
||||
|
||||
logger! {
|
||||
const LOGGER "My Plugin"
|
||||
@@ -8,7 +9,7 @@ logger! {
|
||||
pub struct MyPlugin;
|
||||
|
||||
impl Plugin for MyPlugin {
|
||||
fn init(&mut self) {
|
||||
fn init(&mut self, _server: &Arc<Server>) {
|
||||
LOGGER.info("MyPlugin initialized!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user