/// Update the number of orders remaining before state sync
Update the number of orders remaining before state sync
Update the number of orders remaining before state sync
async fn process_response(
        &self,
        response: &Self::Response,
        state: Arc<RwLock<State>>,
    ) -> Result<()> {
        let state = state.read().await;
        state.set_remaining_orders(response.remaining_orders);
        Ok(())
    }
async fn process_response ( & self , response : & Self :: Response , state : Arc < RwLock < State > > , ) -> Result < ( ) > { let state = state . read ( ) . await ; state . set_remaining_orders ( response . remaining_orders ) ; Ok ( ( ) ) }
Update the number of orders remaining before state sync
Update the number of orders remaining before state sync
&self
<not_specific>
response
&Self::Response
<not_specific>
state
Arc<RwLock<State>>
<not_specific>