net/channel: Fix p2p logging memory leak.

This commit is contained in:
Luther Blissett
2022-09-26 12:56:09 +02:00
parent 589e17cb0f
commit b0989905cc

View File

@@ -53,7 +53,7 @@ impl ChannelInfo {
"last_status": self.last_status,
"log": self.log.lock().await.clone(),
});
self.log.lock().await.clear();
*self.log.lock().await = Vec::new();
result
}
}