Fix negentropy error

This commit is contained in:
Jon Staab
2025-11-04 16:59:47 -08:00
parent 7d3b865451
commit fe93becf41
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ export const diff = async ({relays, filters, ...options}: DiffOptions) => {
}) })
diff.on(DifferenceEvent.Error, (message, url) => { diff.on(DifferenceEvent.Error, (message, url) => {
console.warn(`Negentropy error on ${url}: ${message}`) // Pass, to suppress event emitter's default error propagation
}) })
sleep(30_000).then(() => { sleep(30_000).then(() => {
+1 -1
View File
@@ -7,8 +7,8 @@ export enum RelayMessageType {
Closed = "CLOSED", Closed = "CLOSED",
Eose = "EOSE", Eose = "EOSE",
Event = "EVENT", Event = "EVENT",
NegErr = "NEG-ERR",
NegMsg = "NEG-MSG", NegMsg = "NEG-MSG",
NegErr = "NEG-ERROR",
Ok = "OK", Ok = "OK",
} }