Skip to content

Commit 6bb53ae

Browse files
committed
fixup! Add example implementation using async source
1 parent 7c1fcca commit 6bb53ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/async_source/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async fn run_server() -> Result<(), Box<dyn Error>> {
3131

3232
async fn run_client() -> Result<(), Box<dyn Error>> {
3333
// Good enough for an example to allow server to start
34-
tokio::time::delay_for(tokio::time::Duration::from_secs(3)).await;
34+
tokio::time::sleep(tokio::time::Duration::from_secs(3)).await;
3535

3636
let config = ConfigBuilder::<AsyncState>::default()
3737
.add_async_source(HttpSource {

0 commit comments

Comments
 (0)