Make Event trait Send+Sync.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-07-24 04:07:27 +00:00
1 parent b0315da3d7
commit 8244d78cb2
15 files changed
+27 -25

No files matched your search

+2 -2
View File
@@ -349,9 +349,9 @@ impl Service {
Ok(())
}
pub async fn is_admin_command<E>(&self, event: &E, body: &str) -> bool
pub async fn is_admin_command<Pdu>(&self, event: &Pdu, body: &str) -> bool
where
E: Event + Send + Sync,
Pdu: Event,
{
// Server-side command-escape with public echo
let is_escape = body.starts_with('\\');