Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhao-su committed May 6, 2024
1 parent 950981f commit 3ba61ec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "aws-msk-iam-sasl-signer-rs"
name = "aws-msk-iam-sasl-signer"
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::thread;
use std::time::Duration;

use aws_config::Region;
use aws_msk_iam_sasl_signer_rs::generate_auth_token;
use aws_msk_iam_sasl_signer::generate_auth_token;
use rdkafka::client::OAuthToken;
use rdkafka::consumer::{Consumer, ConsumerContext, StreamConsumer};
use rdkafka::{ClientConfig, ClientContext, Message};
Expand Down Expand Up @@ -67,7 +67,7 @@ async fn main() {

let consumer: StreamConsumer<IamConsumerContext> = config.create_with_context(context).unwrap();

// consumer.recv().now_or_never().unwrap().unwrap();
// assert!(consumer.recv().now_or_never().is_none());
// let partition_list = {
// let mut list = TopicPartitionList::new();
// let meta_data = consumer
Expand Down
2 changes: 1 addition & 1 deletion examples/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::thread;
use std::time::Duration;

use aws_config::Region;
use aws_msk_iam_sasl_signer_rs::generate_auth_token;
use aws_msk_iam_sasl_signer::generate_auth_token;
use rdkafka::client::OAuthToken;
use rdkafka::producer::{FutureProducer, FutureRecord, ProducerContext};
use rdkafka::{ClientConfig, ClientContext};
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ async fn load_credentials_from_profile(
.load()
.await;

// if err != nil {
// return nil, fmt.Errorf("unable to load SDK config: %w", err)
// }

load_credentials_from_credentials_provider(config.credentials_provider().unwrap()).await
}

Expand Down

0 comments on commit 3ba61ec

Please sign in to comment.