File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Coder-Desktop/VPNLib/FileSync Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 ?
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments