*Export FLOOD_SYMBOL

This commit is contained in:
Derrick Hammer 2022-11-16 01:33:26 -05:00
parent c72f45393c
commit ee4c552fb4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 2 deletions

View File

@ -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,