From 77892b20646f865a970826acc77a2da1b17254fe Mon Sep 17 00:00:00 2001 From: slaninas Date: Mon, 22 Aug 2022 05:11:13 -0700 Subject: [PATCH] fix: syntax error --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 85d46d1..fcb6b9c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -478,7 +478,7 @@ async fn nostr_server( // send responses automatically. continue; }, - Some(Err(WsError::Capacity(MessageTooLong(size, max_size)))) => { + Some(Err(WsError::Capacity(MessageTooLong{size, max_size}))) => { ws_stream.send( make_notice_message( &format!("message too large ({} > {})",size, max_size))).await.ok();