mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
refactor
This commit is contained in:
parent
e8611ed85d
commit
496fc8fbbf
|
@ -108,15 +108,15 @@ func (sub *TopicSubscriber) onEachPartition(partition *mq_pb.Partition, broker s
|
||||||
Namespace: sub.ContentConfig.Namespace,
|
Namespace: sub.ContentConfig.Namespace,
|
||||||
Name: sub.ContentConfig.Topic,
|
Name: sub.ContentConfig.Topic,
|
||||||
},
|
},
|
||||||
|
PartitionOffset: &mq_pb.PartitionOffset{
|
||||||
Partition: &mq_pb.Partition{
|
Partition: &mq_pb.Partition{
|
||||||
RingSize: partition.RingSize,
|
RingSize: partition.RingSize,
|
||||||
RangeStart: partition.RangeStart,
|
RangeStart: partition.RangeStart,
|
||||||
RangeStop: partition.RangeStop,
|
RangeStop: partition.RangeStop,
|
||||||
},
|
},
|
||||||
Filter: sub.ContentConfig.Filter,
|
TsNs: sub.alreadyProcessedTsNs,
|
||||||
Offset: &mq_pb.SubscribeMessageRequest_InitMessage_StartTimestampNs{
|
|
||||||
StartTimestampNs: sub.alreadyProcessedTsNs,
|
|
||||||
},
|
},
|
||||||
|
Filter: sub.ContentConfig.Filter,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -148,6 +148,7 @@ func (sub *TopicSubscriber) onEachPartition(partition *mq_pb.Partition, broker s
|
||||||
return fmt.Errorf("subscribe recv: %v", err)
|
return fmt.Errorf("subscribe recv: %v", err)
|
||||||
}
|
}
|
||||||
if resp.Message == nil {
|
if resp.Message == nil {
|
||||||
|
glog.V(0).Infof("subscriber %s/%s/%s received nil message", sub.ContentConfig.Namespace, sub.ContentConfig.Topic, sub.SubscriberConfig.ConsumerGroup)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
switch m := resp.Message.(type) {
|
switch m := resp.Message.(type) {
|
||||||
|
|
Loading…
Reference in a new issue