mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix use Tls
This commit is contained in:
parent
d22317018b
commit
96a59422b1
2 changed files with 6 additions and 3 deletions
|
|
@ -9,6 +9,7 @@ use chat::Chat;
|
|||
use locales::t;
|
||||
use modals::Modals;
|
||||
use std::io::{Error, ErrorKind};
|
||||
use tls::Tls;
|
||||
|
||||
/// PDDB Dict for sigchat keys
|
||||
const SIGCHAT_ACCOUNT: &str = "sigchat.account";
|
||||
|
|
@ -263,7 +264,7 @@ impl<'a> SigChat<'a> {
|
|||
///
|
||||
/// # Returns
|
||||
/// the name provided by the user
|
||||
///
|
||||
///
|
||||
fn name_modal(&self, default_name: &str, prompt: &str) -> String {
|
||||
match self
|
||||
.modals
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use std::sync::mpsc;
|
|||
use std::sync::{Arc, Mutex};
|
||||
use std::thread;
|
||||
use std::time::{Duration, Instant};
|
||||
use tls::Tls;
|
||||
use xous::MessageEnvelope;
|
||||
use xous_ipc::String;
|
||||
|
||||
|
|
@ -22,7 +21,10 @@ use net::XousServerId;
|
|||
use perflib::*;
|
||||
|
||||
#[cfg(feature = "websocket")]
|
||||
use tungstenite::{stream::MaybeTlsStream, WebSocket};
|
||||
use {
|
||||
tls::Tls,
|
||||
tungstenite::{stream::MaybeTlsStream, WebSocket},
|
||||
};
|
||||
|
||||
pub struct NetCmd {
|
||||
callback_id: Option<u32>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue