File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -870,7 +870,8 @@ where
870
870
/// to which it will respond.
871
871
fn spawn_handshake ( & mut self , s : T :: Stream ) {
872
872
let h = Builder :: new ( NOISE_PARAMS . parse ( ) . expect ( "valid noise params" ) )
873
- . local_private_key ( & self . keypair . secret_key ( ) . as_bytes ( ) ) . expect ( "valid private key" )
873
+ . local_private_key ( & self . keypair . secret_key ( ) . as_bytes ( ) )
874
+ . expect ( "valid private key" )
874
875
. build_responder ( )
875
876
. expect ( "valid noise params yield valid handshake state" ) ;
876
877
self . handshake_tasks . spawn ( async move {
@@ -962,8 +963,10 @@ async fn connect<T: tcp::Stream + Unpin>(
962
963
963
964
let new_handshake_state = || {
964
965
Builder :: new ( NOISE_PARAMS . parse ( ) . expect ( "valid noise params" ) )
965
- . local_private_key ( this. 1 . secret_key ( ) . as_slice ( ) ) . expect ( "valid private key" )
966
- . remote_public_key ( to. 1 . as_slice ( ) ) . expect ( "valid remote pub key" )
966
+ . local_private_key ( this. 1 . secret_key ( ) . as_slice ( ) )
967
+ . expect ( "valid private key" )
968
+ . remote_public_key ( to. 1 . as_slice ( ) )
969
+ . expect ( "valid remote pub key" )
967
970
. build_initiator ( )
968
971
. expect ( "valid noise params yield valid handshake state" )
969
972
} ;
You can’t perform that action at this time.
0 commit comments