summaryrefslogtreecommitdiff
path: root/client-native-lib/src/peer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client-native-lib/src/peer.rs')
-rw-r--r--client-native-lib/src/peer.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/client-native-lib/src/peer.rs b/client-native-lib/src/peer.rs
index 8e89f48..82c7c94 100644
--- a/client-native-lib/src/peer.rs
+++ b/client-native-lib/src/peer.rs
@@ -6,9 +6,8 @@
use crate::{
instance::Instance,
protocol::{self, ProvideInfo, RelayMessage, Sdp},
- LocalResource,
};
-use log::{info, warn};
+use log::{debug, info, warn};
use std::{collections::HashMap, sync::Arc};
use tokio::sync::RwLock;
use webrtc::{
@@ -191,7 +190,7 @@ impl Peer {
warn!("({}) requested unknown local resource", self.id)
}
}
- RelayMessage::RequestStop { id } => {}
+ RelayMessage::RequestStop { id: _ } => {} // TODO
}
}
@@ -200,14 +199,14 @@ impl Peer {
}
pub async fn on_ice_candidate(&self, candidate: RTCIceCandidate) {
- info!("publishing local ICE candidate");
+ debug!("publishing local ICE candidate");
self.send_relay(RelayMessage::IceCandidate(
candidate.to_json().await.unwrap(),
))
.await;
}
pub async fn on_remote_ice_candidate(&self, candidate: RTCIceCandidateInit) {
- info!("adding remote ICE candidate");
+ debug!("adding remote ICE candidate");
self.peer_connection
.add_ice_candidate(candidate)
.await