diff options
| author | Eskil Q <eskilq@kth.se> | 2021-01-02 11:24:59 +0100 |
|---|---|---|
| committer | Eskil Q <eskilq@kth.se> | 2021-01-02 11:24:59 +0100 |
| commit | 0f225e518b6889f604cb440f14824b21ed49bf37 (patch) | |
| tree | 7409d69790690f2e26b1aae4a35367cd2d6bad7d /mumd/src/state.rs | |
| parent | 76a3f1ea5489048e6d32982119429daa05dde3e0 (diff) | |
| download | mum-0f225e518b6889f604cb440f14824b21ed49bf37.tar.gz | |
make a bunch of functions sync
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 4 |
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, |
