Add TODO comment

This commit is contained in:
bitfl0wer 2023-11-19 16:42:48 +01:00
parent 50cd93aae1
commit b3ebdd69fc
1 changed files with 1 additions and 0 deletions

View File

@ -659,6 +659,7 @@ pub trait HeartbeatHandlerCapable<T: MessageCapable + Send + 'static, S: Sink<T>
fn get_send(&self) -> &Sender<HeartbeatThreadCommunication>; fn get_send(&self) -> &Sender<HeartbeatThreadCommunication>;
fn get_heartbeat_interval(&self) -> Duration; fn get_heartbeat_interval(&self) -> Duration;
#[allow(clippy::new_ret_no_self)] #[allow(clippy::new_ret_no_self)]
// TODO: new() has duplicated code in wasm and default impl. Can be fixed, if this is not a trait
fn new( fn new(
heartbeat_interval: Duration, heartbeat_interval: Duration,
websocket_tx: Arc<Mutex<SplitSink<S, T>>>, websocket_tx: Arc<Mutex<SplitSink<S, T>>>,