Skip to content

Commit

Permalink
increase channel handler capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Musixal committed Oct 7, 2024
1 parent 04f4526 commit e1d6bf6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions internal/client/transport/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ func (c *TcpTransport) poolMaintainer() {
}

func (c *TcpTransport) channelHandler() {
msgChan := make(chan byte, 100)
errChan := make(chan error, 100)
msgChan := make(chan byte, 1000)
errChan := make(chan error, 1000)

// Goroutine to handle the blocking ReceiveBinaryString
go func() {
Expand Down
4 changes: 2 additions & 2 deletions internal/client/transport/tcpmux.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ func (c *TcpMuxTransport) poolMaintainer() {
}

func (c *TcpMuxTransport) channelHandler() {
msgChan := make(chan byte, 100)
errChan := make(chan error, 100)
msgChan := make(chan byte, 1000)
errChan := make(chan error, 1000)

// Goroutine to handle the blocking ReceiveBinaryString
go func() {
Expand Down
4 changes: 2 additions & 2 deletions internal/client/transport/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ func (c *WsTransport) poolMaintainer() {
}

func (c *WsTransport) channelHandler() {
msgChan := make(chan byte, 100)
errChan := make(chan error, 100)
msgChan := make(chan byte, 1000)
errChan := make(chan error, 1000)

// Goroutine to handle the blocking ReceiveBinaryString
go func() {
Expand Down
4 changes: 2 additions & 2 deletions internal/client/transport/wsmux.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ func (c *WsMuxTransport) poolMaintainer() {
}

func (c *WsMuxTransport) channelHandler() {
msgChan := make(chan byte, 100)
errChan := make(chan error, 100)
msgChan := make(chan byte, 1000)
errChan := make(chan error, 1000)

// Goroutine to handle the blocking ReceiveBinaryString
go func() {
Expand Down

0 comments on commit e1d6bf6

Please sign in to comment.