diff --git a/rtc-turn/benches/bench.rs b/rtc-turn/benches/bench.rs index 81513db..cdc732e 100644 --- a/rtc-turn/benches/bench.rs +++ b/rtc-turn/benches/bench.rs @@ -1,12 +1,12 @@ use std::time::Duration; use criterion::{criterion_group, criterion_main, Criterion}; +use rtc_turn::proto::chandata::ChannelData; +use rtc_turn::proto::channum::{ChannelNumber, MIN_CHANNEL_NUMBER}; +use rtc_turn::proto::data::Data; +use rtc_turn::proto::lifetime::Lifetime; use stun::attributes::ATTR_DATA; use stun::message::{Getter, Message, Setter}; -use turn::proto::chandata::ChannelData; -use turn::proto::channum::{ChannelNumber, MIN_CHANNEL_NUMBER}; -use turn::proto::data::Data; -use turn::proto::lifetime::Lifetime; fn benchmark_chan_data(c: &mut Criterion) { { diff --git a/rtc-turn/src/client/mod.rs b/rtc-turn/src/client/mod.rs index 43f5102..10328ca 100644 --- a/rtc-turn/src/client/mod.rs +++ b/rtc-turn/src/client/mod.rs @@ -201,7 +201,7 @@ impl Client { self.handle_inbound(&msg.message[..], msg.transport.peer_addr) } - pub(crate) fn poll_event(&mut self) -> Option { + pub fn poll_event(&mut self) -> Option { while let Some(event) = self.tr_map.poll_event() { self.events.push_back(event); }