@@ -426,8 +426,8 @@ macro_rules! event_service_call {
426
426
$s: ident;
427
427
$v: ident ( $i: ident ) => $e: expr
428
428
) => {
429
- fn call( & mut self , req: $crate:: handler:: EventWithState < State > ) -> Self :: Future {
430
- let ( $s, event) = req. into ( ) ;
429
+ fn call( & mut self , req: ( State , $crate:: handler:: Event ) ) -> Self :: Future {
430
+ let ( $s, event) = req;
431
431
match event {
432
432
$crate:: Event :: $v( $i) => :: futures:: future:: Either :: Left (
433
433
$crate:: handler:: WrapErrorFuture :: new( self . inner. call( $e) ) ,
@@ -472,14 +472,14 @@ macro_rules! event_service {
472
472
$crate:: macros:: event_service_call! { [ < $e: camel >] ( e) }
473
473
}
474
474
475
- impl <State , Service , Fallback > :: tower:: Service <$crate:: handler:: EventWithState < State > >
475
+ impl <State , Service , Fallback > :: tower:: Service <( State , $crate:: handler:: Event ) >
476
476
for [ < $e: camel Service >] <Service , Fallback , $crate:: payloads:: [ < $e: camel Payload >] >
477
477
where
478
478
Service : :: tower:: Service <$crate:: payloads:: [ < $e: camel Payload >] , Response = ( ) >,
479
479
Service :: Error : :: std:: convert:: Into <:: std:: boxed:: Box <
480
480
dyn :: std:: error:: Error + :: std:: marker:: Send + :: std:: marker:: Sync + ' static ,
481
481
>>,
482
- Fallback : :: tower:: Service <$crate:: handler:: EventWithState < State > , Response = ( ) >,
482
+ Fallback : :: tower:: Service <( State , $crate:: handler:: Event ) , Response = ( ) >,
483
483
Fallback :: Error : :: std:: convert:: Into <:: std:: boxed:: Box <
484
484
dyn :: std:: error:: Error + :: std:: marker:: Send + :: std:: marker:: Sync + ' static ,
485
485
>>,
@@ -489,7 +489,7 @@ macro_rules! event_service {
489
489
$crate:: macros:: event_service_call! { state; [ < $e: camel >] ( e) => e }
490
490
}
491
491
492
- impl <State , Service , Fallback > :: tower:: Service <$crate:: handler:: EventWithState < State > >
492
+ impl <State , Service , Fallback > :: tower:: Service <( State , $crate:: handler:: Event ) >
493
493
for [ < $e: camel Service >] <Service , Fallback , ( $crate:: payloads:: [ < $e: camel Payload >] , ) >
494
494
where
495
495
Service : :: tower:: Service <
@@ -499,7 +499,7 @@ macro_rules! event_service {
499
499
Service :: Error : :: std:: convert:: Into <:: std:: boxed:: Box <
500
500
dyn :: std:: error:: Error + :: std:: marker:: Send + :: std:: marker:: Sync + ' static ,
501
501
>>,
502
- Fallback : :: tower:: Service <$crate:: handler:: EventWithState < State > , Response = ( ) >,
502
+ Fallback : :: tower:: Service <( State , $crate:: handler:: Event ) , Response = ( ) >,
503
503
Fallback :: Error : :: std:: convert:: Into <:: std:: boxed:: Box <
504
504
dyn :: std:: error:: Error + :: std:: marker:: Send + :: std:: marker:: Sync + ' static ,
505
505
>>,
@@ -509,7 +509,7 @@ macro_rules! event_service {
509
509
$crate:: macros:: event_service_call! { state; [ < $e: camel >] ( e) => ( e, ) }
510
510
}
511
511
512
- impl <State , Service , Fallback > :: tower:: Service <$crate:: handler:: EventWithState < State > >
512
+ impl <State , Service , Fallback > :: tower:: Service <( State , $crate:: handler:: Event ) >
513
513
for [ < $e: camel Service >] <Service , Fallback , ( State , $crate:: payloads:: [ < $e: camel Payload >] ) >
514
514
where
515
515
Service : :: tower:: Service <
@@ -519,7 +519,7 @@ macro_rules! event_service {
519
519
Service :: Error : :: std:: convert:: Into <:: std:: boxed:: Box <
520
520
dyn :: std:: error:: Error + :: std:: marker:: Send + :: std:: marker:: Sync + ' static ,
521
521
>>,
522
- Fallback : :: tower:: Service <$crate:: handler:: EventWithState < State > , Response = ( ) >,
522
+ Fallback : :: tower:: Service <( State , $crate:: handler:: Event ) , Response = ( ) >,
523
523
Fallback :: Error : :: std:: convert:: Into <:: std:: boxed:: Box <
524
524
dyn :: std:: error:: Error + :: std:: marker:: Send + :: std:: marker:: Sync + ' static ,
525
525
>>,
0 commit comments