Merge branch 'main' into dev

This commit is contained in:
Derek Collison
2023-02-21 08:34:08 -08:00
13 changed files with 180 additions and 197 deletions

View File

@@ -97,7 +97,7 @@ type internal struct {
sweeper *time.Timer
stmr *time.Timer
replies map[string]msgHandler
sendq *ipQueue // of *pubMsg
sendq *ipQueue[*pubMsg]
resetCh chan struct{}
wg sync.WaitGroup
sq *sendq
@@ -346,8 +346,7 @@ RESET:
select {
case <-sendq.ch:
msgs := sendq.pop()
for _, pmi := range msgs {
pm := pmi.(*pubMsg)
for _, pm := range msgs {
if pm.si != nil {
pm.si.Name = servername
pm.si.Domain = domain