Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/stores/nostr/authSessionRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ interface AuthSessionRuntimeDeps {
};
pendingIncomingDeletions: { clear: () => void };
pendingIncomingReactions: { clear: () => void };
relayConnectFailureCooldownUntilByUrl: { clear: () => void };
relayConnectRetryStateByUrl: { clear: () => void };
relayConnectPromises: { clear: () => void };
relayStatusVersion: Ref<number>;
resetContactSubscriptionsRuntimeState: (reason?: string) => void;
Expand Down Expand Up @@ -133,7 +133,7 @@ export function createAuthSessionRuntime({
pendingEventSinceState,
pendingIncomingDeletions,
pendingIncomingReactions,
relayConnectFailureCooldownUntilByUrl,
relayConnectRetryStateByUrl,
relayConnectPromises,
relayStatusVersion,
resetContactSubscriptionsRuntimeState,
Expand Down Expand Up @@ -561,7 +561,7 @@ export function createAuthSessionRuntime({
resetPrivateMessagesUiRuntimeState({ includeRefreshQueue: true });
configuredRelayUrls.clear();
relayConnectPromises.clear();
relayConnectFailureCooldownUntilByUrl.clear();
relayConnectRetryStateByUrl.clear();
groupContactRefreshPromises.clear();
backgroundGroupContactRefreshStartedAt.clear();
setPendingPrivateMessagesEpochSubscriptionRefreshOptions(null);
Expand Down
4 changes: 3 additions & 1 deletion src/stores/nostr/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export const INITIAL_CONNECT_TIMEOUT_MS = 2500;
export const RELAY_FIRST_HEALTHY_WAIT_MS = 1500;
export const RELAY_PUBLISH_TIMEOUT_MS = 2500;
export const RELAY_QUERY_TIMEOUT_MS = 2500;
export const RELAY_CONNECT_FAILURE_COOLDOWN_MS = 10 * 1000;
export const RELAY_CONNECT_RETRY_BASE_DELAY_MS = 10 * 1000;
export const RELAY_CONNECT_RETRY_MAX_DELAY_MS = 5 * 60 * 1000;
export const RELAY_CONNECT_RETRY_JITTER_RATIO = 0.2;
export const RECONNECT_HEALING_PRIVATE_MESSAGES_EOSE_TIMEOUT_MS = 8 * 1000;
export const BACKGROUND_GROUP_CONTACT_REFRESH_COOLDOWN_MS = 5 * 1000;
export const PRIVATE_MESSAGES_EPOCH_SUBSCRIPTION_REFRESH_DEBOUNCE_MS = 250;
Loading
Loading