Убрать настройку таймаута звонка

This commit is contained in:
AidarKC
2026-11-30 11:38:18 +03:00
parent 1621537d77
commit 3f3e93c87d
3 changed files with 4 additions and 7 deletions
+1 -4
View File
@@ -166,7 +166,7 @@ const DEFAULT_SHINE_SERVER = DEFAULT_SHINE_SERVER_WS;
const DEFAULT_SHINE_SERVER_LOGIN_VALUE = DEFAULT_SHINE_SERVER_LOGIN;
const DEFAULT_SHINE_SERVER_HTTP_VALUE = DEFAULT_SHINE_SERVER_HTTP;
const DEFAULT_ARWEAVE_SERVER = 'https://arweave.net';
const DEFAULT_CALL_PREFLIGHT_TIMEOUT_MS = 6000;
// Call preflight uses a fixed internal timeout; it is not a user setting.
function normalizeStoredSolanaServer(value) {
const raw = String(value || '').trim();
@@ -247,7 +247,6 @@ function profileEntrySettingsSnapshot(settings = {}) {
shineServerLogin: String(settings.shineServerLogin || ''),
shineServerHttp: String(settings.shineServerHttp || ''),
arweaveServer: String(settings.arweaveServer || ''),
callPreflightTimeoutMs: Number(settings.callPreflightTimeoutMs || DEFAULT_CALL_PREFLIGHT_TIMEOUT_MS),
remoteAddBlockSessionId: String(settings.remoteAddBlockSessionId || ''),
};
}
@@ -386,7 +385,6 @@ function persistEntrySettings(settings) {
shineServerLogin: String(settings?.shineServerLogin || DEFAULT_SHINE_SERVER_LOGIN_VALUE),
shineServerHttp: String(settings?.shineServerHttp || DEFAULT_SHINE_SERVER_HTTP_VALUE),
arweaveServer: String(settings?.arweaveServer || DEFAULT_ARWEAVE_SERVER),
callPreflightTimeoutMs: Math.max(1000, Math.min(20000, Number(settings?.callPreflightTimeoutMs || DEFAULT_CALL_PREFLIGHT_TIMEOUT_MS) || DEFAULT_CALL_PREFLIGHT_TIMEOUT_MS)),
remoteAddBlockSessionId: String(settings?.remoteAddBlockSessionId || ''),
statuses: {
solanaServer: String(settings?.statuses?.solanaServer || 'idle'),
@@ -479,7 +477,6 @@ function createInitialState({ withStoredSession = true } = {}) {
shineServerLogin: String(initialShineServerLogin),
shineServerHttp: String(URL_SHINE_SERVER_HTTP_OVERRIDE || storedEntrySettings?.shineServerHttp || DEFAULT_SHINE_SERVER_HTTP_VALUE),
arweaveServer: String(storedEntrySettings?.arweaveServer || DEFAULT_ARWEAVE_SERVER),
callPreflightTimeoutMs: Math.max(1000, Math.min(20000, Number(storedEntrySettings?.callPreflightTimeoutMs || DEFAULT_CALL_PREFLIGHT_TIMEOUT_MS) || DEFAULT_CALL_PREFLIGHT_TIMEOUT_MS)),
remoteAddBlockSessionId: String(storedEntrySettings?.remoteAddBlockSessionId || ''),
statuses: {
solanaServer: String(storedEntrySettings?.statuses?.solanaServer || 'idle'),