Skip to content

Commit

Permalink
More info
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma233 committed Jan 19, 2024
1 parent b518fe9 commit bb9354f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crates/transport/src/connections/web_sys_webrtc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ impl ConnectionInterface for WebSysWebrtcConnection {

js_utils::window_sleep(1000).await;
}

Err(Error::DataChannelOpen(format!(
"Timeout in {WEBRTC_WAIT_FOR_DATA_CHANNEL_OPEN_TIMEOUT} seconds"
)))
}

async fn close(&self) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion examples/native/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async fn main() {
let did = Did::from(key.address());

let key_str = serde_json::to_string(&key).unwrap();
println!("===> Current key: {key_str}");
println!("===> Current key: {key_str}"); // It's useful when you want to reproduce the same did.
println!("===> Current did: {did}");

// Build SessionSk of node in a safely way.
Expand Down

0 comments on commit bb9354f

Please sign in to comment.