1
+ import NIOCore
2
+
1
3
public extension MutagenDaemon {
2
4
func refreshSessions( ) async {
3
5
guard case . running = state else { return }
@@ -49,7 +51,7 @@ public extension MutagenDaemon {
49
51
}
50
52
}
51
53
do {
52
- _ = try await client!. sync. create ( req)
54
+ _ = try await client!. sync. create ( req, callOptions : . init ( timeLimit : . timeout ( sessionMgmtReqTimeout ) ) )
53
55
} catch {
54
56
throw . grpcFailure( error)
55
57
}
@@ -68,7 +70,7 @@ public extension MutagenDaemon {
68
70
req. selection = . with { selection in
69
71
selection. specifications = ids
70
72
}
71
- } )
73
+ } , callOptions : . init ( timeLimit : . timeout ( sessionMgmtReqTimeout ) ) )
72
74
} catch {
73
75
throw . grpcFailure( error)
74
76
}
@@ -87,7 +89,7 @@ public extension MutagenDaemon {
87
89
req. selection = . with { selection in
88
90
selection. specifications = ids
89
91
}
90
- } )
92
+ } , callOptions : . init ( timeLimit : . timeout ( sessionMgmtReqTimeout ) ) )
91
93
} catch {
92
94
throw . grpcFailure( error)
93
95
}
@@ -106,7 +108,7 @@ public extension MutagenDaemon {
106
108
req. selection = . with { selection in
107
109
selection. specifications = ids
108
110
}
109
- } )
111
+ } , callOptions : . init ( timeLimit : . timeout ( sessionMgmtReqTimeout ) ) )
110
112
} catch {
111
113
throw . grpcFailure( error)
112
114
}
0 commit comments