Skip to content

Commit

Permalink
Fix: Update Benchmark Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMcFelix committed Jul 1, 2021
1 parent 91d7542 commit 338a042
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions benches/mixing-task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ use criterion::{
use flume::{Receiver, Sender, TryRecvError};
use songbird::{
constants::*,
driver::bench_internals::{mixer::Mixer, task_message::*, CryptoState},
driver::{
bench_internals::{mixer::Mixer, task_message::*, CryptoState},
Bitrate,
},
input::{cached::Compressed, Input},
tracks,
Bitrate,
};
use tokio::runtime::{Handle, Runtime};
use xsalsa20poly1305::{aead::NewAead, XSalsa20Poly1305 as Cipher, KEY_SIZE};
Expand Down Expand Up @@ -48,7 +50,7 @@ fn dummied_mixer(
let mut out = Mixer::new(mix_rx, handle, ic, Default::default());

let fake_conn = MixerConnection {
cipher: Cipher::new_varkey(&vec![0u8; KEY_SIZE]).unwrap(),
cipher: Cipher::new_from_slice(&vec![0u8; KEY_SIZE]).unwrap(),
crypto_state: CryptoState::Normal,
udp_rx: udp_receiver_tx,
udp_tx: udp_sender_tx,
Expand Down

0 comments on commit 338a042

Please sign in to comment.