Skip to content

Commit

Permalink
Update aggregator.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiees2 authored Aug 24, 2021
1 parent 037e450 commit 08e6eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregate/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (a *Aggregator) AddRecord(partitionKey string, hasPartitionKey bool, data [

if !hasPartitionKey {
if len(a.partitionKeys) > 0 {
// Take the first partition key from the map, if any
// Take any partition key from the map, as long as one exists
for k, _ := range a.partitionKeys {
partitionKey = k
break
Expand Down

0 comments on commit 08e6eef

Please sign in to comment.