aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state.rs
diff options
context:
space:
mode:
authorEskil Q <eskilq@kth.se>2021-01-02 11:24:59 +0100
committerEskil Q <eskilq@kth.se>2021-01-02 11:24:59 +0100
commit0f225e518b6889f604cb440f14824b21ed49bf37 (patch)
tree7409d69790690f2e26b1aae4a35367cd2d6bad7d /mumd/src/state.rs
parent76a3f1ea5489048e6d32982119429daa05dde3e0 (diff)
downloadmum-0f225e518b6889f604cb440f14824b21ed49bf37.tar.gz
make a bunch of functions sync
Diffstat (limited to 'mumd/src/state.rs')
-rw-r--r--mumd/src/state.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs
index 1421691..85e5449 100644
--- a/mumd/src/state.rs
+++ b/mumd/src/state.rs
@@ -64,7 +64,7 @@ pub struct State {
}
impl State {
- pub async fn new(
+ pub fn new(
packet_sender: mpsc::UnboundedSender<ControlPacket<Serverbound>>,
connection_info_sender: watch::Sender<Option<ConnectionInfo>>,
) -> Self {
@@ -72,7 +72,7 @@ impl State {
let audio = Audio::new(
config.audio.input_volume.unwrap_or(1.0),
config.audio.output_volume.unwrap_or(1.0),
- ).await;
+ );
let mut state = Self {
config,
server: None,