Skip to content

Commit 032237c

Browse files
committed
bump timeouts
1 parent 6610bf1 commit 032237c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Coder-Desktop/VPNLib/FileSync/FileSyncDaemon.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public class MutagenDaemon: FileSyncDaemon {
4343
private let mutagenDataDirectory: URL
4444
private let mutagenDaemonSocket: URL
4545

46-
// Managing sync sessions can take a while, especially with prompting
47-
let sessionMgmtReqTimeout: TimeAmount = .seconds(5)
46+
// Managing sync sessions could take a while, especially with prompting
47+
let sessionMgmtReqTimeout: TimeAmount = .seconds(15)
4848

4949
// Non-nil when the daemon is running
5050
var client: DaemonClient?

Coder-Desktop/VPNLib/FileSync/FileSyncManagement.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public extension MutagenDaemon {
5151
}
5252
}
5353
do {
54-
_ = try await client!.sync.create(req, callOptions: .init(timeLimit: .timeout(sessionMgmtReqTimeout)))
54+
// The first creation will need to transfer the agent binary
55+
_ = try await client!.sync.create(req, callOptions: .init(timeLimit: .timeout(sessionMgmtReqTimeout * 2)))
5556
} catch {
5657
throw .grpcFailure(error)
5758
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy