Skip to content

Commit

Permalink
Passphrase::from
Browse files Browse the repository at this point in the history
  • Loading branch information
pierceforte committed May 22, 2024
1 parent 8e6b57d commit a4b6d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srt-tokio/examples/multiplex_authenticating_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async fn handle_request(request: ConnectionRequest) {

let key_settings = KeySettings {
key_size: KeySize::AES256,
passphrase: Passphrase::try_from("password128").unwrap(),
passphrase: Passphrase::from("password128"),
};
let mut sender = request.accept(Some(key_settings)).await.unwrap();
let mut stream = stream::iter(
Expand Down

0 comments on commit a4b6d76

Please sign in to comment.