File tree 1 file changed +22
-2
lines changed
1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,26 @@ pub struct Table {
213
213
shard_addrs : Vec < SocketAddr > ,
214
214
}
215
215
216
+ // b/c of https://github.com/rust-lang/rust/issues/53546
217
+ pub fn map1 (
218
+ _: ( ) ,
219
+ _: Tagged < ( ) > ,
220
+ ) -> Result <
221
+ ( ) ,
222
+ tower_buffer:: Error <
223
+ tower_balance:: Error <
224
+ tower_buffer:: Error <
225
+ tokio_tower:: multiplex:: client:: Error <
226
+ tokio_tower:: multiplex:: MultiplexTransport < Transport , Tagger > ,
227
+ > ,
228
+ > ,
229
+ tokio_tower:: multiplex:: client:: SpawnError < std:: io:: Error > ,
230
+ > ,
231
+ > ,
232
+ > {
233
+ Ok ( ( ) )
234
+ }
235
+
216
236
impl Service < Input > for Table {
217
237
type Error = TableError ;
218
238
type Response = <TableRpc as Service < Tagged < LocalOrNot < Input > > > >:: Response ;
@@ -292,9 +312,9 @@ impl Service<Input> for Table {
292
312
293
313
future:: Either :: B (
294
314
wait_for
295
- . fold ( ( ) , |_ , _| Ok ( ( ) ) )
315
+ . fold ( ( ) , map1 )
296
316
. map_err ( TableError :: from)
297
- . map ( |_| Tagged :: from ( ( ) ) ) ,
317
+ . map ( Tagged :: from) ,
298
318
)
299
319
}
300
320
}
You can’t perform that action at this time.
0 commit comments