linted extension calls on init function and command index

This commit is contained in:
Valmo Trindade
2024-12-05 03:02:16 -03:00
parent e81104f9eb
commit 972bd1c67e
3 changed files with 10 additions and 12 deletions

View File

@@ -71,7 +71,6 @@ impl WsServer {
}
}
lazy_static! {
static ref WEBSOCKET_SERVER: Arc<Mutex<Option<WsServer>>> = Arc::new(Mutex::new(None));
}
@@ -101,7 +100,6 @@ pub fn message(payload: String) -> &'static str {
"Sending message to all WebSocket clients"
}
pub fn location(payload: LocationPayload) -> &'static str {
if let Some(ref server) = *WEBSOCKET_SERVER.lock().unwrap() {
server.send_message(payload);