Skip to content

Commit

Permalink
[examples] Sync SDK examples from awsdocs/aws-doc-sdk-examples
Browse files Browse the repository at this point in the history
Includes commit(s):
  6aadb9b7d3323f7d1101d426fd7d8c905b08c875

Co-authored-by: David Souther <davidsouther+github@gmail.com>
  • Loading branch information
aws-sdk-rust-ci and DavidSouther committed Apr 1, 2024
1 parent febe754 commit ed78ca9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async fn send_notification(
.key(destination.1)
.presigned(
PresigningConfig::builder()
.expires_in(Duration::days(1).to_std()?)
.expires_in(Duration::try_days(1).unwrap().to_std()?)
.build()?,
)
.await?;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
use chrono::NaiveDateTime;
use chrono::DateTime;
use std::io::Read;
use streaming_zip::Archive;

Expand All @@ -14,7 +14,7 @@ async fn main() -> Result<(), anyhow::Error> {
let mut body = [0u8; READ_SIZE];
zip_writer.start_new_file(
"name".into(),
NaiveDateTime::from_timestamp_micros(0).unwrap(),
DateTime::from_timestamp_micros(0).unwrap().naive_utc(),
streaming_zip::CompressionMode::Deflate(8),
false,
)?;
Expand Down
2 changes: 1 addition & 1 deletion examples/examples/cloudwatchlogs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ path = "../../test-utils"
version = "0.1.0"

[dev-dependencies]
aws-smithy-mocks-experimental= { version = "0.2.0", path = "../../../sdk/aws-smithy-mocks-experimental" }
aws-smithy-mocks-experimental = { version = "0.2.0", path = "../../../sdk/aws-smithy-mocks-experimental" }
2 changes: 1 addition & 1 deletion versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
smithy_rs_revision = 'e432b399aae9a47853974fc008ec61cae6b60380'
aws_doc_sdk_examples_revision = 'b291c5da2bc2d1100c2cf74a063ed24a0b55e744'
aws_doc_sdk_examples_revision = '6aadb9b7d3323f7d1101d426fd7d8c905b08c875'

[manual_interventions]
crates_to_remove = []
Expand Down

0 comments on commit ed78ca9

Please sign in to comment.