pub fn send_until_success(req: TransactionRequest) -> TransactionResult {
    loop {
        match send(req.clone()) {
            Some(result) => break result,
            None => thread::sleep(Duration::from_millis(Env::retry_delay())),
        }
    }
}
// send a request until there is a response - emulates network
send a request until there is a response - emulates network
send a request until there is a response - emulates network
pub fn send_until_success(req: TransactionRequest) -> TransactionResult {
    loop {
        match send(req.clone()) {
            Some(result) => break result,
            None => thread::sleep(Duration::from_millis(Env::retry_delay())),
        }
    }
}
pub fn send_until_success ( req : TransactionRequest ) -> TransactionResult { loop { match send ( req . clone ( ) ) { Some ( result ) => break result , None => thread :: sleep ( Duration :: from_millis ( Env :: retry_delay ( ) ) ) , } } }
send a request until there is a response - emulates network
send a request until there is a response - emulates network
req
TransactionRequest