fix: remove protostream module, and missing NOTICE

This commit is contained in:
Greg Heartsfield 2022-02-12 16:22:12 -06:00
parent c9f87ec563
commit 8250e00f05
2 changed files with 2 additions and 4 deletions

View File

@ -2,12 +2,11 @@ pub mod close;
pub mod config; pub mod config;
pub mod conn; pub mod conn;
pub mod db; pub mod db;
pub mod schema;
pub mod error; pub mod error;
pub mod event; pub mod event;
pub mod hexrange; pub mod hexrange;
pub mod info; pub mod info;
pub mod nip05; pub mod nip05;
pub mod protostream; pub mod schema;
pub mod subscription; pub mod subscription;
pub mod utils; pub mod utils;

View File

@ -530,8 +530,7 @@ async fn nostr_server(
} }
Some(Err(Error::EventMaxLengthError(s))) => { Some(Err(Error::EventMaxLengthError(s))) => {
info!("client {:?} sent event larger ({} bytes) than max size", cid, s); info!("client {:?} sent event larger ({} bytes) than max size", cid, s);
//TODO ws_stream.send(Message::Text(format!("[\"NOTICE\",\"{}\"]", "event exceeded max size"))).await.ok();
//nostr_stream.send(NoticeRes("event exceeded max size".to_owned())).await.ok();
}, },
Some(Err(e)) => { Some(Err(e)) => {
info!("got non-fatal error from client: {:?}, error: {:?}", cid, e); info!("got non-fatal error from client: {:?}, error: {:?}", cid, e);