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

Commit

Permalink
fix channel buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jul 29, 2017
1 parent 1105bb0 commit 9b18747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func NewKafkaClient(cfg *config.Config, cluster string) (*KafkaClient, error) {
cfg: cfg,
client: sclient,
masterConsumer: master,
messageChannel: make(chan *sarama.ConsumerMessage),
errorChannel: make(chan *sarama.ConsumerError),
messageChannel: make(chan *sarama.ConsumerMessage, 1000),
errorChannel: make(chan *sarama.ConsumerError, 1000),
wgFanIn: sync.WaitGroup{},
wgProcessor: sync.WaitGroup{},
topicMap: make(map[string]int),
Expand Down

0 comments on commit 9b18747

Please sign in to comment.