File tree 2 files changed +6
-3
lines changed
Coder-Desktop/VPNLib/FileSync
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ public class MutagenDaemon: FileSyncDaemon {
43
43
private let mutagenDataDirectory : URL
44
44
private let mutagenDaemonSocket : URL
45
45
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 )
48
48
49
49
// Non-nil when the daemon is running
50
50
var client : DaemonClient ?
Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ public extension MutagenDaemon {
51
51
}
52
52
}
53
53
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 ) ) )
55
58
} catch {
56
59
throw . grpcFailure( error)
57
60
}
You can’t perform that action at this time.
0 commit comments