Skip to content

Commit

Permalink
Merge pull request #5 from Minehut/lifecycle-expired-update
Browse files Browse the repository at this point in the history
Updating lifecycle expired field
  • Loading branch information
rayjanoka authored Sep 12, 2024
2 parents 61c0e08 + 572ae16 commit 8c354b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archie/removeObject.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func (a *Archiver) removeObject(ctx context.Context, mLog zerolog.Logger, eventObjKey string, msg *nats.Msg, record event.Record) (error, string, AckType) {
metadata, _ := msg.Metadata()

if a.SkipLifecycleExpired && record.Source.Host == "Internal: [ILM-EXPIRY]" {
if a.SkipLifecycleExpired && (record.Source.Host == "Internal: [ILM-EXPIRY]" || record.Source.UserAgent == "Internal: [ILM-EXPIRY]") {
mLog.Info().
Uint64("numDelivered", metadata.NumDelivered).
Str("queueDuration", time.Now().Sub(metadata.Timestamp).String()).
Expand Down

0 comments on commit 8c354b6

Please # to comment.