moved default sories location and added some proper error handling
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ pub async fn api_process
|
||||
// Perform this code on a GET request
|
||||
.map(|state: Arc<Mutex<DataToSend>>, tx_handle: Sender<(bool,usize)>|
|
||||
{
|
||||
info!("GET: {:?}", state);
|
||||
debug!("GET: {:?}", state);
|
||||
let reply = state.as_ref();
|
||||
let _ = tx_handle.send((true,0));
|
||||
warp::reply::json(&reply) // Send the reply data (data_to_send formatted as JSON)
|
||||
|
||||
Reference in New Issue
Block a user