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:
YinMo19
2025-04-28 00:47:33 +08:00
committed by GitHub
parent 16e9e716b6
commit c9d5e15ac0
6 changed files with 11 additions and 13 deletions

View File

@@ -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();