Skip to content

Commit

Permalink
refac: make fields public
Browse files Browse the repository at this point in the history
  • Loading branch information
amab8901 committed Jan 15, 2025
1 parent a4a12aa commit ef61361
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 29 deletions.
39 changes: 13 additions & 26 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ version = "0.3.28"
[dependencies.log]
version = "0.4"

[dependencies.rdkafka]
version = "0.36.2"

[dependencies.serde]
version = "1.0"
Expand All @@ -58,3 +56,6 @@ features = ["full"]

[dependencies.tokio-stream]
version = "0.1"

[dependencies]
rdkafka = { git = "https://github.com/gapitio/gapit-rdkafka", rev = "c514b4880579b65d1a46908bd237a760158de056"}
2 changes: 1 addition & 1 deletion src/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl KafkaProducer {
);
}
Err((error, owned_message)) => {
let topic = owned_message.topic;
let topic = owned_message.topic.clone();
let payload_size = owned_message.payload.unwrap_or_default().len();
let key = message.key;
let headers = owned_message.headers.unwrap_or_default();
Expand Down

0 comments on commit ef61361

Please sign in to comment.