File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
internal/grpcwrapper/rawtopic Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ func (res *DescribeTopicResult) FromProto(protoResponse *Ydb_Topic.DescribeTopic
6969 }
7070 }
7171
72+ res .Attributes = make (map [string ]string )
7273 for k , v := range protoResult .Attributes {
7374 res .Attributes [k ] = v
7475 }
Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ func (d *TopicDescription) FromRaw(raw *rawtopic.DescribeTopicResult) {
146146
147147 d .PartitionWriteSpeedBytesPerSecond = raw .PartitionWriteSpeedBytesPerSecond
148148 d .PartitionWriteBurstBytes = raw .PartitionWriteBurstBytes
149+
150+ d .Attributes = make (map [string ]string )
149151 for k , v := range raw .Attributes {
150152 d .Attributes [k ] = v
151153 }
@@ -172,6 +174,8 @@ func (d *TopicDescription) ToRaw(raw *rawtopic.DescribeTopicResult) {
172174
173175 raw .PartitionWriteBurstBytes = d .PartitionWriteBurstBytes
174176 raw .PartitionWriteSpeedBytesPerSecond = d .PartitionWriteSpeedBytesPerSecond
177+
178+ raw .Attributes = make (map [string ]string )
175179 for k , v := range d .Attributes {
176180 raw .Attributes [k ] = v
177181 }
You can’t perform that action at this time.
0 commit comments