From 68ff941c4226074206ceed9c30bd95317aa0e9fc Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 17 Jun 2021 19:24:35 +0300 Subject: - Initial broadcast commit Signed-off-by: Valery Piashchynski --- plugins/websockets/pool/workers_pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/websockets/pool') diff --git a/plugins/websockets/pool/workers_pool.go b/plugins/websockets/pool/workers_pool.go index a196d1f0..22042d8d 100644 --- a/plugins/websockets/pool/workers_pool.go +++ b/plugins/websockets/pool/workers_pool.go @@ -12,7 +12,7 @@ import ( ) type WorkersPool struct { - storage map[string]pubsub.PubSub + storage map[string]pubsub.SubReader connections *sync.Map resPool sync.Pool log logger.Logger @@ -22,7 +22,7 @@ type WorkersPool struct { } // NewWorkersPool constructs worker pool for the websocket connections -func NewWorkersPool(pubsubs map[string]pubsub.PubSub, connections *sync.Map, log logger.Logger) *WorkersPool { +func NewWorkersPool(pubsubs map[string]pubsub.SubReader, connections *sync.Map, log logger.Logger) *WorkersPool { wp := &WorkersPool{ connections: connections, queue: make(chan *websocketsv1.Message, 100), -- cgit v1.2.3