Skip to content

Commit 2b62b02

Browse files
committed
remove unused channel
Nothing was using it or looking for it.
1 parent f238969 commit 2b62b02

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

events/consumer_group.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type SaramaConsumerGroup struct {
1717
config *CloudEventsConfig
1818
consumerGroup sarama.ConsumerGroup
1919
consumer MessageConsumer
20-
ready chan bool
2120
stop chan struct{}
2221
stopOnce *sync.Once
2322
topic string
@@ -34,7 +33,6 @@ func NewSaramaConsumerGroup(config *CloudEventsConfig, consumer MessageConsumer)
3433
consumer: consumer,
3534
topic: config.GetPrefixedTopic(),
3635
wg: &sync.WaitGroup{},
37-
ready: make(chan bool, 1),
3836
stop: make(chan struct{}),
3937
stopOnce: &sync.Once{},
4038
}, nil
@@ -48,8 +46,6 @@ func validateConsumerConfig(config *CloudEventsConfig) error {
4846
}
4947

5048
func (s *SaramaConsumerGroup) Setup(session sarama.ConsumerGroupSession) error {
51-
// Mark the consumer as ready
52-
close(s.ready)
5349
return nil
5450
}
5551

@@ -102,7 +98,6 @@ func (s *SaramaConsumerGroup) Start() error {
10298
errChan <- ErrConsumerStopped
10399
return
104100
}
105-
s.ready = make(chan bool)
106101
}
107102
}()
108103

0 commit comments

Comments
 (0)