Skip to content

Commit

Permalink
Fix case where AWS visibility would not clear already-processed data …
Browse files Browse the repository at this point in the history
…and continued reporting it
  • Loading branch information
orishoshan committed Mar 27, 2024
1 parent d7a4194 commit 25be630
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mapper/pkg/awsintentsholder/holder.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (h *AWSIntentsHolder) AddIntent(intent AWSIntent) {
h.lock.Lock()
defer h.lock.Unlock()

logrus.Warnf("Adding intent: %+v", intent)
logrus.Debugf("Adding intent: %+v", intent)

key := AWSIntentKey{
ClientName: intent.Client.Name,
Expand Down Expand Up @@ -106,5 +106,7 @@ func (h *AWSIntentsHolder) getNewIntentsSinceLastGet() []AWSIntent {
intents = append(intents, intent.AWSIntent)
}

h.intents = make(map[AWSIntentKey]TimestampedAWSIntent)

return intents
}

0 comments on commit 25be630

Please sign in to comment.