From 28987135afdeb121df48b32d06fa91f941f2894a Mon Sep 17 00:00:00 2001 From: Jokler Date: Fri, 2 Oct 2020 15:32:04 +0200 Subject: Update dependencies --- src/bot/master.rs | 4 ++-- src/bot/music.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/bot') diff --git a/src/bot/master.rs b/src/bot/master.rs index fe3c3fe..1821ac1 100644 --- a/src/bot/master.rs +++ b/src/bot/master.rs @@ -6,7 +6,7 @@ use log::info; use rand::{rngs::SmallRng, seq::SliceRandom, SeedableRng}; use serde::{Deserialize, Serialize}; use tokio::sync::mpsc::UnboundedSender; -use tsclientlib::{ClientId, ConnectOptions, Identity, MessageTarget}; +use tsclientlib::{ClientId, Connection, Identity, MessageTarget}; use crate::audio_player::AudioPlayerError; use crate::teamspeak::TeamSpeakConnection; @@ -35,7 +35,7 @@ impl MasterBot { let tx = Arc::new(RwLock::new(tx)); info!("Starting in TeamSpeak mode"); - let mut con_config = ConnectOptions::new(args.address.clone()) + let mut con_config = Connection::build(args.address.clone()) .version(tsclientlib::Version::Linux_3_3_2) .name(args.master_name.clone()) .identity(args.id.expect("identity should exist")) diff --git a/src/bot/music.rs b/src/bot/music.rs index 656a169..e8ed33a 100644 --- a/src/bot/music.rs +++ b/src/bot/music.rs @@ -8,7 +8,7 @@ use log::{debug, info}; use serde::Serialize; use structopt::StructOpt; use tokio::sync::mpsc::UnboundedSender; -use tsclientlib::{data, ChannelId, ClientId, ConnectOptions, Identity, Invoker, MessageTarget}; +use tsclientlib::{data, ChannelId, ClientId, Connection, Identity, Invoker, MessageTarget}; use crate::audio_player::{AudioPlayer, AudioPlayerError, PollResult}; use crate::command::Command; @@ -94,7 +94,7 @@ impl MusicBot { } else { info!("Starting in TeamSpeak mode"); - let con_config = ConnectOptions::new(args.address) + let con_config = Connection::build(args.address) .version(tsclientlib::Version::Linux_3_3_2) .name(format!("🎵 {}", args.name)) .identity(args.id) -- cgit v1.2.3-70-g09d2