2 parents 6964bb4 + e991d29 commit ed59f67Copy full SHA for ed59f67
2 files changed
native/src/api/endpoint.rs
@@ -86,7 +86,7 @@ pub async fn endpoint_create(
86
Ok(())
87
}
88
#[tauri::command(rename_all = "snake_case")]
89
-pub async fn _endpoint_close(api: tauri::State<'_, Api>) -> Result<(), Error> {
+pub async fn endpoint_close(api: tauri::State<'_, Api>) -> Result<(), Error> {
90
api.endpoint.inner.write().take();
91
92
native/src/lib.rs
@@ -70,6 +70,7 @@ pub fn run() {
70
api::endpoint::endpoint_get_secret_key_id,
71
api::endpoint::endpoint_person_protocol_event_next,
72
api::endpoint::endpoint_create,
73
+ api::endpoint::endpoint_close,
74
api::endpoint::endpoint_is_create,
75
api::endpoint::endpoint_request_person,
76
api::endpoint::endpoint_request_friend,
0 commit comments