Skip to content

Commit 9e3ab06

Browse files
committed
fix remove
1 parent 9cfddbb commit 9e3ab06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/memorytracker/memorytracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (mt *Tracker) removeSelectCase(i int) {
6868
mt.mux.Lock()
6969
defer mt.mux.Unlock()
7070

71-
mt.selectCases = slices.Delete(mt.selectCases, 1+i, 2+i)
71+
mt.selectCases = slices.Delete(mt.selectCases, i-1, i)
7272
}
7373

7474
func (mt *Tracker) track(ctx context.Context) {

0 commit comments

Comments
 (0)