Skip to content

Commit

Permalink
chore(aws): remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: mlycore <maxwell92@126.com>
  • Loading branch information
mlycore committed Aug 12, 2022
1 parent d497a6a commit 17b1f0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions pisa-proxy/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pisa-proxy/audit/aws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ edition = "2021"
aws-config = "0.47.0"
aws-sdk-cloudwatchlogs = { version = "0.17.0", default-features = false, features = ["rustls"]}
chrono = "0.4.0"
tokio = { version = "1", features = ["full"] }
tokio = { version = "1", features = ["full"] }
tracing = "0.1.13"
tracing-futures = { version = "0.2.3" }
tracing-subscriber = "0.3.9"
4 changes: 2 additions & 2 deletions pisa-proxy/audit/aws/src/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

use aws_config::meta::region::RegionProviderChain;
use aws_sdk_cloudwatchlogs::{model::InputLogEvent, Client};
use tracing::trace;
use chrono::Utc;

pub struct CloudWatchLog {
Expand All @@ -37,7 +38,6 @@ impl CloudWatchLog {

pub struct CloudWatchSinker {
pub client: Client,
// pub region: String,
}

impl CloudWatchSinker {
Expand Down Expand Up @@ -73,7 +73,7 @@ impl CloudWatchSinker {
.log_events(e)
.send()
.await?;
println!("aws resp {:?}", resp);
trace!("aws resp {:?}", resp);
break;
}
}
Expand Down

0 comments on commit 17b1f0d

Please sign in to comment.