Skip to content

Commit

Permalink
chore(loopbackRpcIssuer): reduced random wait
Browse files Browse the repository at this point in the history
In most cases the random wait doesn't help, as users just want to use
the admin panel, not test how it reacts to bad network condition. For
now I just reduced it, maybe later we can add a toggle

Signed-off-by: Lukas Mertens <[email protected]>

commit-id:fdcfca23
  • Loading branch information
lukas-mertens committed Apr 23, 2024
1 parent 0580186 commit 94c95fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/evbc/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {RpcIssuer} from "./rpc/abstractRpcIssuer";
import {LoopbackRpcIssuer} from "@/modules/evbc/rpc/loopbackRpcIssuer";
import {WebsocketRpcIssuer} from "@/modules/evbc/rpc/websocketRpcIssuer";

export const LOOPBACK_WAIT_MS = 500;
// set a value greater than 0 to simulate a delay in the loopback mode
export const LOOPBACK_WAIT_MS = 0;

type ConnectionOpenStatus = {
type: "OPEN";
Expand Down

0 comments on commit 94c95fe

Please sign in to comment.