From 9b6b92d0cec58c3054c389f73fc86b96b79c17d1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 14 Sep 2022 20:23:40 +0200 Subject: extract lib --- client-native-lib/src/state.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client-native-lib/src/state.rs') diff --git a/client-native-lib/src/state.rs b/client-native-lib/src/state.rs index baea90a..57c4b29 100644 --- a/client-native-lib/src/state.rs +++ b/client-native-lib/src/state.rs @@ -7,12 +7,11 @@ use webrtc::api::API; use crate::{ crypto::Key, peer::Peer, - protocol::{self, ClientboundPacket, RelayMessage, RelayMessageWrapper, ServerboundPacket}, - Action, Args, + protocol::{self, ClientboundPacket, RelayMessage, RelayMessageWrapper, ServerboundPacket}, Config, }; pub struct State { - pub args: Args, + pub config: Config, pub api: API, pub key: Key, pub my_id: RwLock>, @@ -40,7 +39,6 @@ impl State { .write() .await .insert(id, Peer::create(self.clone(), id).await); - if let Action::Send { .. } = &self.args.action {} } } protocol::ClientboundPacket::ClientLeave { id: _ } => {} -- cgit v1.2.3-70-g09d2