aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Russell <ryanrussell@users.noreply.github.com>2022-09-14 11:15:21 -0500
committerGitHub <noreply@github.com>2022-09-14 09:15:21 -0700
commitdfaa60266156f83118acf9a3c12fa9297fa2e15b (patch)
tree68e25c464072d9ef002246af7079ef1260347b54
parent19652c1b83d3b26355a820988fce977c99173c60 (diff)
downloadseaweedfs-dfaa60266156f83118acf9a3c12fa9297fa2e15b.tar.xz
seaweedfs-dfaa60266156f83118acf9a3c12fa9297fa2e15b.zip
refactor(notification_kafka): `parition` -> `partition` (#3663)
-rw-r--r--weed/replication/sub/notification_kafka.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/replication/sub/notification_kafka.go b/weed/replication/sub/notification_kafka.go
index 951026fe1..92f7ce609 100644
--- a/weed/replication/sub/notification_kafka.go
+++ b/weed/replication/sub/notification_kafka.go
@@ -146,11 +146,11 @@ func (progress *KafkaProgress) saveProgress() error {
return nil
}
-func (progress *KafkaProgress) setOffset(parition int32, offset int64) error {
+func (progress *KafkaProgress) setOffset(partition int32, offset int64) error {
progress.Lock()
defer progress.Unlock()
- progress.PartitionOffsets[parition] = offset
+ progress.PartitionOffsets[partition] = offset
if int(time.Now().Sub(progress.lastSaveTime).Seconds()) > progress.offsetSaveIntervalSeconds {
return progress.saveProgress()
}