use negentropy error message format specified in NIP-77

This commit is contained in:
Doug Hoyte
2024-11-13 15:21:23 -05:00
parent 8aa79e41a1
commit f10bdf9337
2 changed files with 10 additions and 6 deletions

View File

@ -149,7 +149,7 @@ void RelayServer::runNegentropy(ThreadPool<MsgNegentropy>::Thread &thr) {
sendToConn(sub.connId, tao::json::to_string(tao::json::value::array({
"NEG-ERR",
sub.subId.str(),
"RESULTS_TOO_BIG",
"blocked: too many query results",
cfg().relay__negentropy__maxSyncEvents
})));
@ -228,7 +228,7 @@ void RelayServer::runNegentropy(ThreadPool<MsgNegentropy>::Thread &thr) {
sendToConn(msg->connId, tao::json::to_string(tao::json::value::array({
"NEG-ERR",
msg->subId.str(),
"CLOSED"
"closed: unknown subscription handle"
})));
continue;