mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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 locales::t;
|
||||||
use modals::Modals;
|
use modals::Modals;
|
||||||
use std::io::{Error, ErrorKind};
|
use std::io::{Error, ErrorKind};
|
||||||
|
use tls::Tls;
|
||||||
|
|
||||||
/// PDDB Dict for sigchat keys
|
/// PDDB Dict for sigchat keys
|
||||||
const SIGCHAT_ACCOUNT: &str = "sigchat.account";
|
const SIGCHAT_ACCOUNT: &str = "sigchat.account";
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ use std::sync::mpsc;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time::{Duration, Instant};
|
use std::time::{Duration, Instant};
|
||||||
use tls::Tls;
|
|
||||||
use xous::MessageEnvelope;
|
use xous::MessageEnvelope;
|
||||||
use xous_ipc::String;
|
use xous_ipc::String;
|
||||||
|
|
||||||
|
|
@ -22,7 +21,10 @@ use net::XousServerId;
|
||||||
use perflib::*;
|
use perflib::*;
|
||||||
|
|
||||||
#[cfg(feature = "websocket")]
|
#[cfg(feature = "websocket")]
|
||||||
use tungstenite::{stream::MaybeTlsStream, WebSocket};
|
use {
|
||||||
|
tls::Tls,
|
||||||
|
tungstenite::{stream::MaybeTlsStream, WebSocket},
|
||||||
|
};
|
||||||
|
|
||||||
pub struct NetCmd {
|
pub struct NetCmd {
|
||||||
callback_id: Option<u32>,
|
callback_id: Option<u32>,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue