File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl ManagerClient {
109
109
}
110
110
111
111
fn quorum (
112
- & mut self ,
112
+ & self ,
113
113
py : Python < ' _ > ,
114
114
rank : i64 ,
115
115
step : i64 ,
@@ -129,7 +129,7 @@ impl ManagerClient {
129
129
// keep alives to detect server health.
130
130
request. set_timeout ( timeout) ;
131
131
132
- let response = self . runtime . block_on ( self . client . quorum ( request) ) ?;
132
+ let response = self . runtime . block_on ( self . client . clone ( ) . quorum ( request) ) ?;
133
133
let resp = response. into_inner ( ) ;
134
134
Ok ( (
135
135
resp. quorum_id ,
@@ -146,7 +146,7 @@ impl ManagerClient {
146
146
}
147
147
148
148
fn checkpoint_address (
149
- & mut self ,
149
+ & self ,
150
150
py : Python < ' _ > ,
151
151
rank : i64 ,
152
152
timeout : Duration ,
@@ -160,14 +160,14 @@ impl ManagerClient {
160
160
161
161
let response = self
162
162
. runtime
163
- . block_on ( self . client . checkpoint_address ( request) ) ?;
163
+ . block_on ( self . client . clone ( ) . checkpoint_address ( request) ) ?;
164
164
let resp = response. into_inner ( ) ;
165
165
Ok ( resp. checkpoint_server_address )
166
166
} )
167
167
}
168
168
169
169
fn should_commit (
170
- & mut self ,
170
+ & self ,
171
171
py : Python < ' _ > ,
172
172
rank : i64 ,
173
173
step : i64 ,
@@ -185,7 +185,9 @@ impl ManagerClient {
185
185
// endpoint timeout which we set on client creation.
186
186
request. set_timeout ( timeout) ;
187
187
188
- let response = self . runtime . block_on ( self . client . should_commit ( request) ) ?;
188
+ let response = self
189
+ . runtime
190
+ . block_on ( self . client . clone ( ) . should_commit ( request) ) ?;
189
191
let resp = response. into_inner ( ) ;
190
192
Ok ( resp. should_commit )
191
193
} )
You can’t perform that action at this time.
0 commit comments