1
0
Fork 0
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:
Kane York 2015-10-26 11:22:06 -07:00
parent 730ce39f72
commit 0be3693c99
6 changed files with 193 additions and 62 deletions

View file

@ -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.