Don't kill gateway on handle drop (#4934)

This commit is contained in:
Bogdan-Ștefan Neacşu
2024-09-27 11:02:39 +02:00
committed by GitHub
parent f76300669a
commit a4c6f51fe0
+2 -1
View File
@@ -39,7 +39,8 @@ impl<St: Storage + Clone + 'static> PeerHandle<St> {
let timeout_check_interval = tokio_stream::wrappers::IntervalStream::new(
tokio::time::interval(DEFAULT_PEER_TIMEOUT_CHECK),
);
let task_client = task_client.fork(format!("peer{public_key}"));
let mut task_client = task_client.fork(format!("peer-{public_key}"));
task_client.disarm();
PeerHandle {
storage,
public_key,