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

+2-2
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

+2-1
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)