mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
net/channel: Fix p2p logging memory leak.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user