Add buffer to broker SendMessage

This commit is contained in:
Deluan 2020-11-09 19:24:27 -05:00
parent 08dbf44529
commit 8f2fe6f9fa
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ type broker struct {
func NewBroker() Broker {
// Instantiate a broker
broker := &broker{
notifier: make(chan []byte, 1),
notifier: make(chan []byte, 100),
newClients: make(chan chan []byte),
closingClients: make(chan chan []byte),
clients: make(map[chan []byte]bool),