refactor(notification_kafka): parition -> partition (#3663)
This commit is contained in:
@@ -146,11 +146,11 @@ func (progress *KafkaProgress) saveProgress() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (progress *KafkaProgress) setOffset(parition int32, offset int64) error {
|
func (progress *KafkaProgress) setOffset(partition int32, offset int64) error {
|
||||||
progress.Lock()
|
progress.Lock()
|
||||||
defer progress.Unlock()
|
defer progress.Unlock()
|
||||||
|
|
||||||
progress.PartitionOffsets[parition] = offset
|
progress.PartitionOffsets[partition] = offset
|
||||||
if int(time.Now().Sub(progress.lastSaveTime).Seconds()) > progress.offsetSaveIntervalSeconds {
|
if int(time.Now().Sub(progress.lastSaveTime).Seconds()) > progress.offsetSaveIntervalSeconds {
|
||||||
return progress.saveProgress()
|
return progress.saveProgress()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user