Skip to content

Commit 9aa9c67

Browse files
committed
test: non-breaking change
1 parent 1aa7a02 commit 9aa9c67

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/utils/mailbox/mailbox.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type Mailbox[T any] struct {
2020
capacity uint64
2121
// onCloseFn is a hook used to stop monitoring, if non-nil
2222
onCloseFn func()
23+
newParam uint32
2324
}
2425

2526
// NewHighCapacity create a new mailbox with a capacity
@@ -42,6 +43,7 @@ func New[T any](capacity uint32) *Mailbox[T] {
4243
chNotify: make(chan struct{}, 1),
4344
queue: make([]T, 0, queueCap),
4445
capacity: uint64(capacity),
46+
newParam: capacity,
4547
}
4648
}
4749

0 commit comments

Comments
 (0)