Skip to content

Commit b1179af

Browse files
committed
rename and clippy fix
1 parent b3ec499 commit b1179af

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

client/src/connection/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Connection {
4141
Ok(Connection { framed })
4242
}
4343

44-
pub async fn exchange_information(
44+
pub async fn initialize_communication(
4545
&mut self,
4646
client_options: ClientOptions,
4747
) -> Result<DeviceConfig, Error> {

client/src/connection/video.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use anyhow::{Context, Error};
2-
use futures::stream::StreamExt;
32
use lz4_flex::decompress_size_prepended;
43
use tracing::trace;
54

client/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ async fn main() -> Result<(), Error> {
2727
.context("could not initialize TCP connection")?;
2828

2929
let device_config = conn
30-
.exchange_information(client_options.clone())
30+
.initialize_communication(client_options.clone())
3131
.await
32-
.context("error during initial information exchange")?;
32+
.context("error during initializing the communication")?;
3333

3434
let mut video_connection = VideoConnection::new(conn, device_config.video_config)
3535
.context("could not initialize video connection")?;

server/src/connection/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl Connection {
2626
Connection { framed }
2727
}
2828

29-
pub async fn exchange_information(&mut self) -> Result<StreamConfig, Error> {
29+
pub async fn initialize_communication(&mut self) -> Result<StreamConfig, Error> {
3030
self.authenticate()
3131
.await
3232
.context("error while authenticating client")?;

server/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ impl Server {
6969

7070
async fn task(mut conn: Connection) -> Result<(), Error> {
7171
let stream_config = conn
72-
.exchange_information()
72+
.initialize_communication()
7373
.await
74-
.context("error during initial information exchange")?;
74+
.context("error during initializing the communication")?;
7575

7676
let mut video_conn = VideoConnection::new(conn, stream_config)
7777
.context("could not initialize video connection")?;

0 commit comments

Comments
 (0)