added chan

This commit is contained in:
nquidox 2026-02-20 14:25:34 +03:00
parent 41f464a823
commit d2af3b1183

View file

@ -64,7 +64,7 @@ func NewClient(deps Deps) *Client {
func StartConsumer(ctx context.Context, client *Client, chanLen int) chan []byte { func StartConsumer(ctx context.Context, client *Client, chanLen int) chan []byte {
msgCh := make(chan []byte, chanLen) msgCh := make(chan []byte, chanLen)
go runConsumer(ctx, client) go runConsumer(ctx, client, msgCh)
return msgCh return msgCh
} }