File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/client/persqueue_public/impl Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class TPersQueueClient::TImpl : public TClientImplCommon<TPersQueueClient::TImpl
5757
5858 bool autoPartitioningSettingsDefined = false ;
5959 if (settings.MaxPartitionsCount_ .has_value ()) {
60- props.mutable_auto_partitioning_settings ()->set_max_active_partitions (settings.PartitionsCount_ );
60+ props.mutable_auto_partitioning_settings ()->set_max_active_partitions (* settings.MaxPartitionsCount_ );
6161 autoPartitioningSettingsDefined = true ;
6262 }
6363 if (settings.AutoPartitioningStrategy_ .has_value ()) {
@@ -77,9 +77,7 @@ class TPersQueueClient::TImpl : public TClientImplCommon<TPersQueueClient::TImpl
7777 autoPartitioningSettingsDefined = true ;
7878 }
7979
80- if (!autoPartitioningSettingsDefined) {
81- props.set_partitions_count (settings.PartitionsCount_ );
82- } else {
80+ if (autoPartitioningSettingsDefined) {
8381 props.mutable_auto_partitioning_settings ()->set_min_active_partitions (settings.PartitionsCount_ );
8482 }
8583
You can’t perform that action at this time.
0 commit comments