Skip to content

Commit 25be630

Browse files
committed
Fix case where AWS visibility would not clear already-processed data and continued reporting it
1 parent d7a4194 commit 25be630

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mapper/pkg/awsintentsholder/holder.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (h *AWSIntentsHolder) AddIntent(intent AWSIntent) {
5050
h.lock.Lock()
5151
defer h.lock.Unlock()
5252

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

5555
key := AWSIntentKey{
5656
ClientName: intent.Client.Name,
@@ -106,5 +106,7 @@ func (h *AWSIntentsHolder) getNewIntentsSinceLastGet() []AWSIntent {
106106
intents = append(intents, intent.AWSIntent)
107107
}
108108

109+
h.intents = make(map[AWSIntentKey]TimestampedAWSIntent)
110+
109111
return intents
110112
}

0 commit comments

Comments
 (0)