loosen up slow connection threshold
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "paravel",
|
"name": "paravel",
|
||||||
"version": "0.5.1",
|
"version": "0.5.2",
|
||||||
"description": "Yet another toolkit for nostr",
|
"description": "Yet another toolkit for nostr",
|
||||||
"author": "hodlbod",
|
"author": "hodlbod",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export class ConnectionMeta {
|
|||||||
if (this.authStatus === AuthStatus.Forbidden) return ConnectionStatus.Forbidden
|
if (this.authStatus === AuthStatus.Forbidden) return ConnectionStatus.Forbidden
|
||||||
if (this.lastFault > this.lastOpen) return ConnectionStatus.Error
|
if (this.lastFault > this.lastOpen) return ConnectionStatus.Error
|
||||||
if (this.lastClose > this.lastOpen) return ConnectionStatus.Closed
|
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
|
return ConnectionStatus.Ok
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user