Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion internal/server/pubqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ func (s *Server) startPublishQueue(wg *sync.WaitGroup) {
defer wg.Done()
var buf []byte
var conns []net.Conn
s.pubq.cond = sync.NewCond(&sync.Mutex{})
s.pubq.cond.L.Lock()
for {
for len(s.pubq.entries) > 0 {
Expand Down
1 change: 1 addition & 0 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ func Serve(opts Options) error {
conns: make(map[int]*Client),
http: opts.UseHTTP,
pubsub: newPubsub(),
pubq: pubQueue{cond: sync.NewCond(&sync.Mutex{})},
monconns: make(map[net.Conn]bool),
cols: &btree.Map[string, *collection.Collection]{},

Expand Down