From ce575b623c27390d0690504f24cfa704ef2ffd2e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 26 Jul 2022 22:58:24 -0400 Subject: [PATCH] *cast to string --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b3ad884..56084ac 100644 --- a/src/index.ts +++ b/src/index.ts @@ -136,7 +136,7 @@ export default class DHT { ) { const relayIndex = await randomNumber(0, available.length - 1); - const connection = this._relays.get(available[relayIndex]); + const connection = this._relays.get(available[relayIndex]) as string; if (!this.isServerAvailable(connection)) { continue;