Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <me@joshvanl.dev>
  • Loading branch information
JoshVanL committed Jan 6, 2025
1 parent 38ce560 commit 2ff5f1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion events/broadcaster/broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import (
"sync/atomic"
)

const bufferSize = 10

type eventCh[T any] struct {
id uint64
ch chan<- T
Expand Down Expand Up @@ -60,7 +62,7 @@ func (b *Broadcaster[T]) subscribe(ctx context.Context, ch chan<- T) {

id := b.currentID
b.currentID++
bufferedCh := make(chan T, 10)
bufferedCh := make(chan T, bufferSize)
closeEventCh := make(chan struct{})
b.eventChs = append(b.eventChs, &eventCh[T]{
id: id,
Expand Down

0 comments on commit 2ff5f1a

Please sign in to comment.