Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumemichel committed Jan 31, 2025
1 parent 3642ac8 commit bf8ed5a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,18 @@ func (sim *SessionInterestManager) FilterInterests(keySets ...[]cid.Cid) [][]cid

result := keySets[:0]
// For each set of keys
for i, ks := range keySets {
// The set of keys that at least one session is interested in
for _, ks := range keySets {
// The set of keys wanted by at least one session
wanted := ks[:0]

// For each key in the set
for _, c := range ks {
// If there are any sessions interested in this key
// If any session wants the key
if _, ok := sim.wants[c]; ok {
wanted = append(wanted, c)
}
}
result = appent(result, wanted)
result = append(result, wanted)
}
return result
}

0 comments on commit bf8ed5a

Please sign in to comment.