fix vector cache out of bounds delete
@@ -76,7 +76,7 @@ func (n *shardedLockCache) delete(ctx context.Context, id uint64) {
n.shardedLocks[id%shardFactor].Lock()
defer n.shardedLocks[id%shardFactor].Unlock()
- if n.cache[id] == nil {
+ if int(id) >= len(n.cache) || n.cache[id] == nil {
return
}
