session renewal

This commit is contained in:
jfmonty2 committed 2023-05-02 11:33:18 -07:00
1 parent 161148d1f6
commit 96bbc2dbc2
3 files changed
+113 -21

No files matched your search

+2 -3
View File
@@ -29,9 +29,8 @@ pub enum Approval {
#[tauri::command]
pub fn respond(response: RequestResponse, app_state: State<'_, AppState>) -> Result<(), String> {
app_state.send_response(response)
.map_err(|e| format!("Error responding to request: {e}"))
pub async fn respond(response: RequestResponse, app_state: State<'_, AppState>) -> Result<(), SendResponseError> {
app_state.send_response(response).await
}