mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-23 00:45:52 -05:00
fix: remove protostream module, and missing NOTICE
This commit is contained in:
parent
c9f87ec563
commit
8250e00f05
|
@ -2,12 +2,11 @@ pub mod close;
|
|||
pub mod config;
|
||||
pub mod conn;
|
||||
pub mod db;
|
||||
pub mod schema;
|
||||
pub mod error;
|
||||
pub mod event;
|
||||
pub mod hexrange;
|
||||
pub mod info;
|
||||
pub mod nip05;
|
||||
pub mod protostream;
|
||||
pub mod schema;
|
||||
pub mod subscription;
|
||||
pub mod utils;
|
||||
|
|
|
@ -530,8 +530,7 @@ async fn nostr_server(
|
|||
}
|
||||
Some(Err(Error::EventMaxLengthError(s))) => {
|
||||
info!("client {:?} sent event larger ({} bytes) than max size", cid, s);
|
||||
//TODO
|
||||
//nostr_stream.send(NoticeRes("event exceeded max size".to_owned())).await.ok();
|
||||
ws_stream.send(Message::Text(format!("[\"NOTICE\",\"{}\"]", "event exceeded max size"))).await.ok();
|
||||
},
|
||||
Some(Err(e)) => {
|
||||
info!("got non-fatal error from client: {:?}, error: {:?}", cid, e);
|
||||
|
|
Loading…
Reference in New Issue
Block a user