Skip to content

Commit

Permalink
perf: rename const
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Dec 15, 2023
1 parent b1a716e commit 26899d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Constants.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module {
public let DEFAULT_MAX_NUMBER_OF_RETURNED_MESSAGES : Nat = 50;
/// The default interval at which to send acknowledgements to the client.
public let DEFAULT_SEND_ACK_INTERVAL_MS : Nat64 = 300_000; // 5 minutes
/// The maximum network latency allowed between the client and the canister.
public let MAX_ALLOWED_NETWORK_LATENCY_MS : Nat64 = 30_000; // 30 seconds
/// The maximum communication latency allowed between the client and the canister.
public let COMMUNICATION_LATENCY_BOUND_MS : Nat64 = 30_000; // 30 seconds
public class Computed() {
/// The default timeout to wait for the client to send a keep alive after receiving an acknowledgement.
public let CLIENT_KEEP_ALIVE_TIMEOUT_MS : Nat64 = 2 * MAX_ALLOWED_NETWORK_LATENCY_MS;
public let CLIENT_KEEP_ALIVE_TIMEOUT_MS : Nat64 = 2 * COMMUNICATION_LATENCY_BOUND_MS;
/// Same as [CLIENT_KEEP_ALIVE_TIMEOUT_MS], but in nanoseconds.
public let CLIENT_KEEP_ALIVE_TIMEOUT_NS : Nat64 = CLIENT_KEEP_ALIVE_TIMEOUT_MS * 1_000_000;
};
Expand Down
2 changes: 1 addition & 1 deletion tests/ic-websocket-cdk-rs

0 comments on commit 26899d8

Please sign in to comment.