Skip to content

Commit

Permalink
Optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang committed May 27, 2020
1 parent 205a695 commit e3257cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/IO/Caching/DataCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void Delete(TKey key)
))
.OrderBy(p => p.KeyBytes, ByteArrayComparer.Default)
.ToArray();
cachedKeySet = dictionary.Select(p => p.Key).ToHashSet();
cachedKeySet = new HashSet<TKey>(cached.Select(p => p.Item2));
}
var uncached = FindInternal(key_prefix ?? Array.Empty<byte>())
.Where(p => !cachedKeySet.Contains(p.Key))
Expand Down

0 comments on commit e3257cb

Please sign in to comment.