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 <git@lukas-mertens.de>

commit-id:fdcfca23
  • Loading branch information
lukas-mertens committed Apr 24, 2024
1 parent 7d0c84a commit 977ed98
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 977ed98

Please sign in to comment.