Skip to content

Commit

Permalink
Add config checksum from event metadata to rate limiting key
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Pimenta <[email protected]>
  • Loading branch information
matheuscscp committed Apr 30, 2023
1 parent 8f1eebc commit 52921ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/server/event_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,9 @@ func getEventKey(event *eventv1.Event) string {
if ok {
comps = append(comps, revString)
}
configChecksum, ok := metadata[eventv1.MetaConfigChecksumKey]
if ok {
comps = append(comps, configChecksum)
}
return strings.Join(comps, "/")
}

0 comments on commit 52921ec

Please sign in to comment.