1+ import NIOCore
2+
13public extension MutagenDaemon {
24 func refreshSessions( ) async {
35 guard case . running = state else { return }
@@ -49,7 +51,7 @@ public extension MutagenDaemon {
4951 }
5052 }
5153 do {
52- _ = try await client!. sync. create ( req)
54+ _ = try await client!. sync. create ( req, callOptions : . init ( timeLimit : . timeout ( sessionMgmtReqTimeout ) ) )
5355 } catch {
5456 throw . grpcFailure( error)
5557 }
@@ -68,7 +70,7 @@ public extension MutagenDaemon {
6870 req. selection = . with { selection in
6971 selection. specifications = ids
7072 }
71- } )
73+ } , callOptions : . init ( timeLimit : . timeout ( sessionMgmtReqTimeout ) ) )
7274 } catch {
7375 throw . grpcFailure( error)
7476 }
@@ -87,7 +89,7 @@ public extension MutagenDaemon {
8789 req. selection = . with { selection in
8890 selection. specifications = ids
8991 }
90- } )
92+ } , callOptions : . init ( timeLimit : . timeout ( sessionMgmtReqTimeout ) ) )
9193 } catch {
9294 throw . grpcFailure( error)
9395 }
@@ -106,7 +108,7 @@ public extension MutagenDaemon {
106108 req. selection = . with { selection in
107109 selection. specifications = ids
108110 }
109- } )
111+ } , callOptions : . init ( timeLimit : . timeout ( sessionMgmtReqTimeout ) ) )
110112 } catch {
111113 throw . grpcFailure( error)
112114 }
0 commit comments