File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ydb/public/sdk/cpp/src/client/topic/impl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -736,7 +736,7 @@ void TConsumerSettings<TSettings>::SerializeTo(Ydb::Topic::Consumer& proto) cons
736736 proto.set_important (Important_);
737737 if (AvailabilityPeriod_ != TDuration::Zero ()) {
738738 proto.mutable_availability_period ()->set_seconds (AvailabilityPeriod_.Seconds ());
739- proto.mutable_availability_period ()->set_nanos (( AvailabilityPeriod_.MicroSeconds () % 1'000'000 ) * 1'000 );
739+ proto.mutable_availability_period ()->set_nanos (AvailabilityPeriod_.NanoSecondsOfSecond () );
740740 } else {
741741 proto.clear_availability_period ();
742742 }
@@ -790,7 +790,7 @@ void TAlterConsumerSettings::SerializeTo(Ydb::Topic::AlterConsumer& proto) const
790790 if (SetAvailabilityPeriod_) {
791791 if (SetAvailabilityPeriod_ != TDuration::Zero ()) {
792792 proto.mutable_set_availability_period ()->set_seconds (SetAvailabilityPeriod_->Seconds ());
793- proto.mutable_set_availability_period ()->set_nanos (( SetAvailabilityPeriod_->MicroSeconds () % 1'000'000 ) * 1'000 );
793+ proto.mutable_set_availability_period ()->set_nanos (SetAvailabilityPeriod_->NanoSecondsOfSecond () );
794794 } else {
795795 proto.mutable_reset_availability_period ();
796796 }
You can’t perform that action at this time.
0 commit comments