adds locking

This commit is contained in:
chrislu
2024-08-11 13:06:01 -07:00
parent b6fd1ff4ce
commit 270e91b0be
3 changed files with 15 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ func (manager *LocalTopicManager) AddLocalPartition(topic Topic, localPartition
if !manager.topics.SetIfAbsent(topic.String(), localTopic) {
localTopic, _ = manager.topics.Get(topic.String())
}
localTopic.AddPartition(localPartition)
localTopic.addPartition(localPartition)
}
// GetLocalPartition gets a topic from the local topic manager