mirror of
https://github.com/mikedilger/chorus.git
synced 2026-11-19 15:24:25 +00:00
minor fix in last commit
This commit is contained in:
1 parent
dbf7313d2b
commit
04062b2267
1 file changed
+1
-1
+1
-1
@@ -405,7 +405,7 @@ impl WebSocketService {
|
||||
log::error!("{}: msg was {}", self.peer, msg);
|
||||
let reply = NostrReply::Notice(format!("error: {}", e));
|
||||
self.websocket.send(Message::text(reply.as_json())).await?;
|
||||
if self.errcount > 3 {
|
||||
if self.errcount >= 3 {
|
||||
let reply = NostrReply::Notice(
|
||||
"Too many errors (3). Banned for 60 seconds.".into(),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user