From ee4c552fb4416e778a3caad84565ae910063a645 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 16 Nov 2022 01:33:26 -0500 Subject: [PATCH] *Export FLOOD_SYMBOL --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2f0281a..a036137 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ const LRU_SIZE = 255; const TTL = 255; const PROTOCOL = "lumeweb.flood"; -const FLOOD_SYMBOL = Symbol.for(PROTOCOL); +export const FLOOD_SYMBOL = Symbol.for(PROTOCOL); export default class DHTFlood extends EventEmitter { private id: Buffer; @@ -71,8 +71,9 @@ export default class DHTFlood extends EventEmitter { this.emit("message", data, originId, messageNumber); - if (ttl <= 0) + if (ttl <= 0) { return debug("Got message at end of TTL", originId, messageNumber, ttl); + } messenger.send({ originId,