File tree Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub(crate) trait Proxy {
4646 #[ name = "call" ]
4747 async fn call ( req : Json < ProxyRequest > ) -> HandlerResult < Json < Vec < u8 > > > ;
4848 #[ name = "oneWayCall" ]
49- async fn one_way_call ( req : Json < ProxyRequest > ) -> HandlerResult < String > ;
49+ async fn one_way_call ( req : Json < ProxyRequest > ) -> HandlerResult < ( ) > ;
5050 #[ name = "manyCalls" ]
5151 async fn many_calls ( req : Json < Vec < ManyCallRequest > > ) -> HandlerResult < ( ) > ;
5252}
@@ -70,19 +70,16 @@ impl Proxy for ProxyImpl {
7070 & self ,
7171 ctx : Context < ' _ > ,
7272 Json ( req) : Json < ProxyRequest > ,
73- ) -> HandlerResult < String > {
73+ ) -> HandlerResult < ( ) > {
7474 let request = ctx. request :: < _ , ( ) > ( req. to_target ( ) , req. message ) ;
7575
76- let invocation_id = if let Some ( delay_millis) = req. delay_millis {
77- request
78- . send_after ( Duration :: from_millis ( delay_millis) )
79- . invocation_id ( )
80- . await ?
76+ if let Some ( delay_millis) = req. delay_millis {
77+ request. send_after ( Duration :: from_millis ( delay_millis) ) ;
8178 } else {
82- request. send ( ) . invocation_id ( ) . await ?
83- } ;
79+ request. send ( ) ;
80+ }
8481
85- Ok ( invocation_id )
82+ Ok ( ( ) )
8683 }
8784
8885 async fn many_calls (
Original file line number Diff line number Diff line change @@ -62,8 +62,6 @@ pub(crate) trait TestUtilsService {
6262 async fn count_executed_side_effects ( increments : u32 ) -> HandlerResult < u32 > ;
6363 #[ name = "getEnvVariable" ]
6464 async fn get_env_variable ( env : String ) -> HandlerResult < String > ;
65- #[ name = "cancelInvocation" ]
66- async fn cancel_invocation ( invocation_id : String ) -> Result < ( ) , TerminalError > ;
6765 #[ name = "interpretCommands" ]
6866 async fn interpret_commands ( req : Json < InterpretRequest > ) -> HandlerResult < ( ) > ;
6967}
@@ -157,15 +155,6 @@ impl TestUtilsService for TestUtilsServiceImpl {
157155 Ok ( std:: env:: var ( env) . ok ( ) . unwrap_or_default ( ) )
158156 }
159157
160- async fn cancel_invocation (
161- & self ,
162- ctx : Context < ' _ > ,
163- invocation_id : String ,
164- ) -> Result < ( ) , TerminalError > {
165- ctx. invocation_handle ( invocation_id) . cancel ( ) . await ?;
166- Ok ( ( ) )
167- }
168-
169158 async fn interpret_commands (
170159 & self ,
171160 context : Context < ' _ > ,
You can’t perform that action at this time.
0 commit comments