Skip to content

Commit

Permalink
fix cargo bench
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Mar 16, 2024
1 parent 2e72a8f commit ae423b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions rtc-turn/benches/bench.rs
Original file line number Diff line number Diff line change
@@ -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) {
{
Expand Down
2 changes: 1 addition & 1 deletion rtc-turn/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl Client {
self.handle_inbound(&msg.message[..], msg.transport.peer_addr)
}

pub(crate) fn poll_event(&mut self) -> Option<Event> {
pub fn poll_event(&mut self) -> Option<Event> {
while let Some(event) = self.tr_map.poll_event() {
self.events.push_back(event);
}
Expand Down

0 comments on commit ae423b2

Please sign in to comment.