fix use Tls

This commit is contained in:
nworbnhoj 2023-12-19 06:18:08 +11:00
parent d22317018b
commit 96a59422b1
2 changed files with 6 additions and 3 deletions

View file

@ -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";

View file

@ -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>,