v0.6.0
This commit is contained in:
@@ -36,5 +36,12 @@ impl AppState {
|
||||
"message": message,
|
||||
"metadata": metadata,
|
||||
}));
|
||||
if let Ok(handle) = tokio::runtime::Handle::try_current() {
|
||||
let state = self.clone();
|
||||
let level = level.to_string();
|
||||
let kind = kind.to_string();
|
||||
let message = message.to_string();
|
||||
handle.spawn(async move { crate::notifications::dispatch(state, level, kind, message, metadata).await; });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user