mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-07-10 11:17:23 +00:00
Avoid using flume::Receiver::into_stream() to avoid memory leaks until the issue is resolved upstream (#394)
* Tweak rolling_total test to also confirm capacity doesn't go nuts * Use Jemalloc * Avoid flume's into_stream and use a workaround for now * cargo fmt * Improve comments now that there's an issue to point to
This commit is contained in:
@@ -205,7 +205,7 @@ impl Connection {
|
||||
closer: Arc::clone(&on_close),
|
||||
},
|
||||
Receiver {
|
||||
inner: rx_from_ws.into_stream(),
|
||||
inner: crate::flume_receiver_into_stream(rx_from_ws),
|
||||
closer: on_close,
|
||||
},
|
||||
)
|
||||
|
||||
@@ -20,7 +20,7 @@ use std::sync::Arc;
|
||||
|
||||
/// Receive messages out of a connection
|
||||
pub struct Receiver {
|
||||
pub(super) inner: flume::r#async::RecvStream<'static, Result<RecvMessage, RecvError>>,
|
||||
pub(super) inner: crate::FlumeRecvStream<'static, Result<RecvMessage, RecvError>>,
|
||||
pub(super) closer: Arc<OnClose>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user