File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -152,31 +152,3 @@ func (d *TopicDescription) FromRaw(raw *rawtopic.DescribeTopicResult) {
152152 d .Attributes [k ] = v
153153 }
154154}
155-
156- // ToRaw
157- //
158- // # Experimental
159- //
160- // Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
161- func (d * TopicDescription ) ToRaw (raw * rawtopic.DescribeTopicResult ) {
162- raw .Self .Name = d .Path
163- d .PartitionSettings .ToRaw (& raw .PartitioningSettings )
164-
165- raw .Consumers = make ([]rawtopic.Consumer , len (d .Consumers ))
166- for i := 0 ; i < len (d .Consumers ); i ++ {
167- d .Consumers [i ].ToRaw (& raw .Consumers [i ])
168- }
169-
170- raw .SupportedCodecs = make ([]rawtopiccommon.Codec , len (d .SupportedCodecs ))
171- for i := 0 ; i < len (d .SupportedCodecs ); i ++ {
172- raw .SupportedCodecs [i ] = rawtopiccommon .Codec (d .SupportedCodecs [i ])
173- }
174-
175- raw .PartitionWriteBurstBytes = d .PartitionWriteBurstBytes
176- raw .PartitionWriteSpeedBytesPerSecond = d .PartitionWriteSpeedBytesPerSecond
177-
178- raw .Attributes = make (map [string ]string )
179- for k , v := range d .Attributes {
180- raw .Attributes [k ] = v
181- }
182- }
You can’t perform that action at this time.
0 commit comments