mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-13 22:49:07 -05:00
chore: formatting
This commit is contained in:
parent
79a982e3ef
commit
4fe6191aa3
|
@ -1 +1 @@
|
|||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
|
|
@ -469,7 +469,8 @@ async fn nostr_server(
|
|||
convert_to_msg(m)
|
||||
},
|
||||
Some(Ok(Message::Binary(_))) => {
|
||||
ws_stream.send(make_notice_message("binary messages are not accepted")).await.ok();
|
||||
ws_stream.send(
|
||||
make_notice_message("binary messages are not accepted")).await.ok();
|
||||
continue;
|
||||
},
|
||||
Some(Ok(Message::Ping(_))) | Some(Ok(Message::Pong(_))) => {
|
||||
|
@ -477,8 +478,10 @@ async fn nostr_server(
|
|||
// send responses automatically.
|
||||
continue;
|
||||
},
|
||||
Some(Err(WsError::Capacity(MessageTooLong{size, max_size}))) => {
|
||||
ws_stream.send(make_notice_message(&format!("message too large ({} > {})",size, max_size))).await.ok();
|
||||
Some(Err(WsError::Capacity(MessageTooLong(size, max_size)))) => {
|
||||
ws_stream.send(
|
||||
make_notice_message(
|
||||
&format!("message too large ({} > {})",size, max_size))).await.ok();
|
||||
continue;
|
||||
},
|
||||
None |
|
||||
|
|
Loading…
Reference in New Issue
Block a user