fix binding issues
This commit is contained in:
		| @@ -591,20 +591,8 @@ impl VeilidAPI { | ||||
|             .map_err(VeilidAPIError::internal)? | ||||
|         { | ||||
|             NetworkResult::Value(v) => v, | ||||
|             NetworkResult::Timeout => { | ||||
|                 return Ok("Timeout".to_owned()); | ||||
|             } | ||||
|             NetworkResult::ServiceUnavailable => { | ||||
|                 return Ok("ServiceUnavailable".to_owned()); | ||||
|             } | ||||
|             NetworkResult::NoConnection(e) => { | ||||
|                 return Ok(format!("NoConnection({})", e)); | ||||
|             } | ||||
|             NetworkResult::AlreadyExists(e) => { | ||||
|                 return Ok(format!("AlreadyExists({})", e)); | ||||
|             } | ||||
|             NetworkResult::InvalidMessage(e) => { | ||||
|                 return Ok(format!("InvalidMessage({})", e)); | ||||
|             r => { | ||||
|                 return Ok(r.to_string()); | ||||
|             } | ||||
|         }; | ||||
|  | ||||
|   | ||||
| @@ -148,7 +148,10 @@ impl RoutingContext { | ||||
|         let answer = match rpc_processor.rpc_call_app_call(dest, request).await { | ||||
|             Ok(NetworkResult::Value(v)) => v, | ||||
|             Ok(NetworkResult::Timeout) => apibail_timeout!(), | ||||
|             Ok(NetworkResult::ServiceUnavailable) => apibail_try_again!(), | ||||
|             Ok(NetworkResult::ServiceUnavailable(e)) => { | ||||
|                 log_network_result!(format!("app_call: ServiceUnavailable({})", e)); | ||||
|                 apibail_try_again!() | ||||
|             } | ||||
|             Ok(NetworkResult::NoConnection(e)) | Ok(NetworkResult::AlreadyExists(e)) => { | ||||
|                 apibail_no_connection!(e); | ||||
|             } | ||||
| @@ -173,7 +176,10 @@ impl RoutingContext { | ||||
|         match rpc_processor.rpc_call_app_message(dest, message).await { | ||||
|             Ok(NetworkResult::Value(())) => {} | ||||
|             Ok(NetworkResult::Timeout) => apibail_timeout!(), | ||||
|             Ok(NetworkResult::ServiceUnavailable) => apibail_try_again!(), | ||||
|             Ok(NetworkResult::ServiceUnavailable(e)) => { | ||||
|                 log_network_result!(format!("app_message: ServiceUnavailable({})", e)); | ||||
|                 apibail_try_again!() | ||||
|             } | ||||
|             Ok(NetworkResult::NoConnection(e)) | Ok(NetworkResult::AlreadyExists(e)) => { | ||||
|                 apibail_no_connection!(e); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user