Skip to content

Commit 7e9324b

Browse files
committed
Fix timeout call in example doc
1 parent 0d4206d commit 7e9324b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/JWT_AUTH_EXAMPLE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,13 @@ To use with BDK, create the electrum client with your config, then wrap it:
157157
use bdk_electrum::BdkElectrumClient;
158158
use electrum_client::{Client, ConfigBuilder};
159159
use std::sync::Arc;
160+
use std::time::Duration;
160161

161162
let config = ConfigBuilder::new()
162163
.authorization_provider(Some(Arc::new(move || {
163164
token_manager.get_token()
164165
})))
165-
.timeout(Some(30))
166+
.timeout(Some(Duration::from_secs(30))
166167
.build();
167168

168169
let electrum_client = Client::from_config("tcp://your-api-gateway:50001", config)?;

0 commit comments

Comments
 (0)