mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-25 14:11:14 +03:00
Using new Stream type adapted to the update of submodules (#11581)
* [fix bug] fix all err stream type. * [update] update hbb_common. * [bug fix] Stream in other platform.
This commit is contained in:
@@ -58,7 +58,6 @@ use hbb_common::{
|
||||
sha2::{Digest, Sha256},
|
||||
socket_client::{connect_tcp, connect_tcp_local, ipv4_to_ipv6},
|
||||
sodiumoxide::{base64, crypto::sign},
|
||||
tcp::FramedStream,
|
||||
timeout,
|
||||
tokio::{
|
||||
self,
|
||||
@@ -3557,8 +3556,7 @@ pub mod peer_online {
|
||||
rendezvous_proto::*,
|
||||
sleep,
|
||||
socket_client::connect_tcp,
|
||||
tcp::FramedStream,
|
||||
ResultType,
|
||||
ResultType, Stream,
|
||||
};
|
||||
|
||||
pub async fn query_online_states<F: FnOnce(Vec<String>, Vec<String>)>(ids: Vec<String>, f: F) {
|
||||
@@ -3581,7 +3579,7 @@ pub mod peer_online {
|
||||
}
|
||||
}
|
||||
|
||||
async fn create_online_stream() -> ResultType<FramedStream> {
|
||||
async fn create_online_stream() -> ResultType<Stream> {
|
||||
let (rendezvous_server, _servers, _contained) =
|
||||
crate::get_rendezvous_server(READ_TIMEOUT).await;
|
||||
let tmp: Vec<&str> = rendezvous_server.split(":").collect();
|
||||
|
||||
Reference in New Issue
Block a user