We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cde0ef7 + ebc8c97 commit 684ad73Copy full SHA for 684ad73
internal/server/pubqueue.go
@@ -22,7 +22,6 @@ func (s *Server) startPublishQueue(wg *sync.WaitGroup) {
22
defer wg.Done()
23
var buf []byte
24
var conns []net.Conn
25
- s.pubq.cond = sync.NewCond(&sync.Mutex{})
26
s.pubq.cond.L.Lock()
27
for {
28
for len(s.pubq.entries) > 0 {
internal/server/server.go
@@ -321,6 +321,7 @@ func Serve(opts Options) error {
321
conns: make(map[int]*Client),
322
http: opts.UseHTTP,
323
pubsub: newPubsub(),
324
+ pubq: pubQueue{cond: sync.NewCond(&sync.Mutex{})},
325
monconns: make(map[net.Conn]bool),
326
cols: &btree.Map[string, *collection.Collection]{},
327
0 commit comments