Skip to content

Commit d29c295

Browse files
aladd04yaron2
andauthored
fix: 'ttlInSeconds' metadata key now respected when publishing to Azure Service Bus Topics. (#3942)
Signed-off-by: Andy Ladd <[email protected]> Co-authored-by: Yaron Schneider <[email protected]>
1 parent 8d675f4 commit d29c295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/component/azure/servicebus/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func addMetadataToMessage(asbMsg *azservicebus.Message, metadata map[string]stri
122122

123123
switch k {
124124
// Common keys
125-
case mdutils.TTLMetadataKey:
125+
case mdutils.TTLMetadataKey, mdutils.TTLInSecondsMetadataKey:
126126
// Ignore v here and use TryGetTTL for the validation it performs
127127
ttl, ok, _ := mdutils.TryGetTTL(metadata)
128128
if ok {

0 commit comments

Comments
 (0)