jiangpengcheng commented on code in PR #1151:
URL: https://github.com/apache/pulsar-client-go/pull/1151#discussion_r1442453267
##########
pulsaradmin/pkg/utils/topic_auto_creation_config.go:
##########
@@ -20,5 +20,5 @@ package utils
type TopicAutoCreationConfig struct {
Allow bool `json:"allowAutoTopicCreation"`
Type TopicType `json:"topicType"`
- Partitions int `json:"defaultNumPartitions"`
+ Partitions *int `json:"defaultNumPartitions"`
Review Comment:
it's not allowed to pass the `partitions` argument when the type is
`non-partitioned`, so need to set this as a pointer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]