Skip to content

Commit dc2bb52

Browse files
committed
doc: explicitly use std::time::Duration on README
1 parent d24be4b commit dc2bb52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async fn main() {
2121
cw_client,
2222
tracing_cloudwatch::ExportConfig::default()
2323
.with_batch_size(5)
24-
.with_interval(Duration::from_secs(1))
24+
.with_interval(std::time::Duration::from_secs(1))
2525
.with_log_group_name("tracing-cloudwatch")
2626
.with_log_stream_name("stream-1"),
2727
),
@@ -48,7 +48,7 @@ async fn main() {
4848
cw_client,
4949
tracing_cloudwatch::ExportConfig::default()
5050
.with_batch_size(5)
51-
.with_interval(Duration::from_secs(1))
51+
.with_interval(std::time::Duration::from_secs(1))
5252
.with_log_group_name("tracing-cloudwatch")
5353
.with_log_stream_name("stream-1"),
5454
),

0 commit comments

Comments
 (0)