aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/peers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/peers.rs')
-rw-r--r--src/api/peers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/peers.rs b/src/api/peers.rs
index b425ba6..8ebffc5 100644
--- a/src/api/peers.rs
+++ b/src/api/peers.rs
@@ -235,7 +235,7 @@ pub(crate) async fn delete_peer(
crate::swarm::members::unregister(doc, &peer_clone)
})
.await
- .map_err(|e| store_status(e, "Failed to write forget record"))?;
+ .map_err(|e| store_status(e, "Failed to write forget record").status())?;
// Unless forced, a peer that came alive since the check above stays: it cancels
// the record.