loosen up slow connection threshold

This commit is contained in:
Jon Staab
2024-03-08 14:21:07 -08:00
parent 446e2bc52e
commit 3e27746617
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "paravel",
"version": "0.5.1",
"version": "0.5.2",
"description": "Yet another toolkit for nostr",
"author": "hodlbod",
"license": "MIT",
+1 -1
View File
@@ -163,7 +163,7 @@ export class ConnectionMeta {
if (this.authStatus === AuthStatus.Forbidden) return ConnectionStatus.Forbidden
if (this.lastFault > this.lastOpen) return ConnectionStatus.Error
if (this.lastClose > this.lastOpen) return ConnectionStatus.Closed
if (this.getSpeed() > 500) return ConnectionStatus.Slow
if (this.getSpeed() > 1000) return ConnectionStatus.Slow
return ConnectionStatus.Ok
}