mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-03 16:38:31 +00:00
Add test that posts to /pub_msg, test infrastructure
This commit is contained in:
parent
730ce39f72
commit
0be3693c99
6 changed files with 193 additions and 62 deletions
|
@ -4,8 +4,6 @@ package server
|
|||
// If I screwed up the locking, I won't know until it's too late.
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
@ -58,6 +56,7 @@ func PublishToAll(msg ClientMessage) (count int) {
|
|||
count++
|
||||
}
|
||||
GlobalSubscriptionInfo.RUnlock()
|
||||
return
|
||||
}
|
||||
|
||||
// Add a channel to the subscriptions while holding a read-lock to the map.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue