File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 > {
Original file line number Diff line number Diff line change 11use anyhow:: { Context , Error } ;
2- use futures:: stream:: StreamExt ;
32use lz4_flex:: decompress_size_prepended;
43use tracing:: trace;
54
Original file line number Diff line number Diff 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" ) ?;
Original file line number Diff line number Diff 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" ) ?;
Original file line number Diff line number Diff 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" ) ?;
You can’t perform that action at this time.
0 commit comments