Commit a2d6e30b authored by Dirk McCormick's avatar Dirk McCormick

refactor: remove extraneous alloc

parent 1e10d28b
......@@ -171,7 +171,7 @@ func (sw *sessionWants) FilterInteresting(ks []cid.Cid) []cid.Cid {
sw.RLock()
defer sw.RUnlock()
interested := make([]cid.Cid, 0, len(ks))
var interested []cid.Cid
for _, k := range ks {
if sw.unlockedIsWanted(k) || sw.pastWants.Has(k) {
interested = append(interested, k)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment