Skip to content

Commit

Permalink
clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwoodbury committed Nov 3, 2023
1 parent b822698 commit c392d54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 29 deletions.
13 changes: 3 additions & 10 deletions extensions/warp-blink-wrtc/src/blink_impl/call_initiation.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
use futures::StreamExt;
use rust_ipfs::SubscriptionStream;
use std::{
collections::{HashMap, HashSet},
sync::Arc,
};

use futures::StreamExt;

use rust_ipfs::SubscriptionStream;

use tokio::sync::{broadcast::Sender, RwLock};
use uuid::Uuid;
use warp::{
blink::BlinkEventKind,
crypto::{did_key::Generate, DID},
error::Error,
};
use warp::{blink::BlinkEventKind, crypto::DID, error::Error};

use crate::{
signaling::InitiationSignal,
Expand Down
31 changes: 12 additions & 19 deletions extensions/warp-blink-wrtc/src/blink_impl/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use crate::host_media;
use crate::simple_webrtc;

mod call_initiation;
use call_initiation::run as handle_call_initiation;

Expand All @@ -11,23 +8,11 @@ mod webrtc_handler;
use webrtc_handler::run as handle_webrtc;
use webrtc_handler::WebRtcHandlerParams;

use async_trait::async_trait;
use host_media::{
audio::{
automute::{AutoMuteCmd, AUDIO_CMD_CH},
AudioCodec, AudioHardwareConfig,
},
mp4_logger::Mp4LoggerConfig,
};
use std::{any::Any, collections::HashMap, str::FromStr, sync::Arc, time::Duration};
use webrtc::rtp_transceiver::rtp_codec::RTCRtpCodecCapability;

use anyhow::{bail, Context};
use async_trait::async_trait;
use cpal::traits::{DeviceTrait, HostTrait};
use futures::StreamExt;

use rust_ipfs::{Ipfs, Keypair};

use std::{any::Any, collections::HashMap, str::FromStr, sync::Arc, time::Duration};
use tokio::{
sync::{
broadcast::{self},
Expand All @@ -44,11 +29,19 @@ use warp::{
multipass::MultiPass,
Extension, SingleHandle,
};
use webrtc::rtp_transceiver::rtp_codec::RTCRtpCodecCapability;

use crate::{
host_media::audio::AudioSampleRate,
host_media::{
self,
audio::{
automute::{AutoMuteCmd, AUDIO_CMD_CH},
AudioCodec, AudioHardwareConfig, AudioSampleRate,
},
mp4_logger::Mp4LoggerConfig,
},
signaling::{ipfs_routes, CallSignal, InitiationSignal},
simple_webrtc::events::WebRtcEventStream,
simple_webrtc::{self, events::WebRtcEventStream},
store::{send_signal_aes, send_signal_ecdh},
};

Expand Down

0 comments on commit c392d54

Please sign in to comment.