Skip to content

Commit

Permalink
Fix an incorrect comment
Browse files Browse the repository at this point in the history
Co-authored-by: Kristina Pathak <kristina.m.pathak@gmail.com>
  • Loading branch information
swiatekm and kristinapathak committed May 9, 2024
1 parent dc6a67a commit 677ece7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/otel-allocator/allocation/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (a *allocator) addCollectorTargetItemMapping(tg *target.Item) {

// handleCollectors receives the new and removed collectors and reconciles the current state.
// Any removals are removed from the allocator's collectors. New collectors are added to the allocator's collector map.
// Finally, update all targets' collectors to match the consistent hashing.
// Finally, update all targets' collector assignments.
func (a *allocator) handleCollectors(diff diff.Changes[*Collector]) {
// Clear removed collectors
for _, k := range diff.Removals() {
Expand Down

0 comments on commit 677ece7

Please sign in to comment.