mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
Make Event trait Send+Sync.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
b0315da3d7
commit
8244d78cb2
15 files changed
+27
-25
No files matched your search
@@ -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('\\');
|
||||
|
||||
Reference in new issue
Block a user