Skip to content

Commit f39e81e

Browse files
committed
fix(trogon-nats): forward headers in JetStream PublishClient impl
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent 70f117b commit f39e81e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

rsworkspace/crates/trogon-nats/src/client.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ impl PublishClient for async_nats::jetstream::Context {
9797
async fn publish_with_headers<S: ToSubject + Send>(
9898
&self,
9999
subject: S,
100-
_headers: HeaderMap,
100+
headers: HeaderMap,
101101
payload: Bytes,
102102
) -> Result<(), Self::PublishError> {
103-
self.publish(subject, payload).await?.await?;
103+
self.publish_with_headers(subject, headers, payload)
104+
.await?
105+
.await?;
104106
Ok(())
105107
}
106108
}

0 commit comments

Comments
 (0)