Skip to content

Commit

Permalink
fix: pass headers received from on_commit actions (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
gk-kindred authored Jul 28, 2024
1 parent e3d2f14 commit fe8bc7b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/talos_messenger_actions/src/messenger_with_kafka.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,19 @@ where
total_publish_count: additional_data,
};

let mut headers_to_publish = headers;

if let Some(payload_header) = payload.headers {
headers_to_publish.extend(payload_header);
}

self.publisher
.publish_to_topic(
&payload.topic,
payload.partition,
payload.key.as_deref(),
payload_str,
headers,
headers_to_publish,
Box::new(delivery_opaque),
)
.unwrap();
Expand Down

0 comments on commit fe8bc7b

Please sign in to comment.