Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #39 from openfresh/feature/spread_channel
Browse files Browse the repository at this point in the history
spread channel capacity
  • Loading branch information
stormcat24 authored Jun 5, 2017
2 parents c32a298 + c8775d5 commit d7ee1d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manager/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (c *Client) SetEvents(events []string) {
func NewClient(events []string) Client {
return Client{
events: events,
payloadChan: make(chan event.Payload),
payloadChan: make(chan event.Payload, 20),
}
}

Expand Down
12 changes: 6 additions & 6 deletions server/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ type StreamServer struct {
func NewStreamServer(opt Option) *StreamServer {
ss := &StreamServer{
clientManager: manager.NewClientManager(),
newClients: make(chan manager.Client),
removeClients: make(chan manager.Client),
payloads: make(chan event.Payload),
errChan: make(chan error),
forceCloseChan: make(chan manager.Client),
resfreshEvents: make(chan refreshEvents),
newClients: make(chan manager.Client, 20),
removeClients: make(chan manager.Client, 20),
payloads: make(chan event.Payload, 20),
errChan: make(chan error, 20),
forceCloseChan: make(chan manager.Client, 20),
resfreshEvents: make(chan refreshEvents, 20),
pubsub: opt.PubSuber,
accessLogger: opt.AccessLogger,
errorLogger: opt.ErrorLogger,
Expand Down

0 comments on commit d7ee1d9

Please sign in to comment.