Unverified Commit 68e4d2c1 authored by zxyy-bys's avatar zxyy-bys Committed by GitHub
Browse files

fix: rename create_response_steam to create_response_stream (#1615)

parent c3a85c06
...@@ -62,7 +62,7 @@ where ...@@ -62,7 +62,7 @@ where
// todo - eventually have a handler class which will returned an abstracted object, but for now, // todo - eventually have a handler class which will returned an abstracted object, but for now,
// we only support tcp here, so we can just unwrap the connection info // we only support tcp here, so we can just unwrap the connection info
tracing::trace!("creating tcp response stream"); tracing::trace!("creating tcp response stream");
let mut publisher = tcp::client::TcpClient::create_response_steam( let mut publisher = tcp::client::TcpClient::create_response_stream(
request.context(), request.context(),
control_msg.connection_info, control_msg.connection_info,
) )
......
...@@ -135,7 +135,7 @@ mod tests { ...@@ -135,7 +135,7 @@ mod tests {
// connect to the server socket // connect to the server socket
let mut send_stream = let mut send_stream =
client::TcpClient::create_response_steam(context_rank1.context(), connection_info) client::TcpClient::create_response_stream(context_rank1.context(), connection_info)
.await .await
.unwrap(); .unwrap();
println!("Client connected"); println!("Client connected");
......
...@@ -72,7 +72,7 @@ impl TcpClient { ...@@ -72,7 +72,7 @@ impl TcpClient {
} }
} }
pub async fn create_response_steam( pub async fn create_response_stream(
context: Arc<dyn AsyncEngineContext>, context: Arc<dyn AsyncEngineContext>,
info: ConnectionInfo, info: ConnectionInfo,
) -> Result<StreamSender> { ) -> Result<StreamSender> {
...@@ -120,7 +120,7 @@ impl TcpClient { ...@@ -120,7 +120,7 @@ impl TcpClient {
Ok(hb) => hb, Ok(hb) => hb,
Err(err) => { Err(err) => {
return Err(error!( return Err(error!(
"create_response_steam: Error converting CallHomeHandshake to JSON array: {err:#}" "create_response_stream: Error converting CallHomeHandshake to JSON array: {err:#}"
)); ));
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment