Skip to content

Commit 58c4ff5

Browse files
committed
bump timeouts
1 parent deeb78b commit 58c4ff5

File tree

2 files changed

+6
-3
lines changed

2 files changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ 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+
// TODO: Because this is pretty long, we should show progress updates
56+
// using the prompter messages
57+
_ = try await client!.sync.create(req, callOptions: .init(timeLimit: .timeout(sessionMgmtReqTimeout * 4)))
5558
} catch {
5659
throw .grpcFailure(error)
5760
}

0 commit comments

Comments
 (0)