This commit is contained in:
Harlow Ward 2019-04-08 21:27:08 -07:00
parent ef4daf97d1
commit 3e9760ef2f

View file

@ -49,8 +49,8 @@ func (b *broker) pollShards(ctx context.Context) {
}
// leaseShards attempts to find new shards that need to be
// processed; when a new shard is found it passing the shard
// ID back to the consumer on the shard channel
// processed; when a new shard is found it passes the shard
// ID back to the consumer on the shardc channel
func (b *broker) leaseShards() {
b.shardMu.Lock()
defer b.shardMu.Unlock()