Skip to content

Commit

Permalink
fix test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
3DRX committed Dec 7, 2024
1 parent 0e171e1 commit defeb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func checkCfg(c *Config) error {
return fmt.Errorf("invalid ipv4 addr \"" + c.Addr + "\"")
}
for _, topic := range c.Topics {
if !isTopicNameValid(&topic.NameIn) || isTopicNameValid(&topic.NameOut) {
if !isTopicNameValid(&topic.NameIn) || !isTopicNameValid(&topic.NameOut) {
return fmt.Errorf("wrong topic name format: \"" + topic.NameIn + "\" or \"" + topic.NameOut + "\"")
}
switch topic.Type {
Expand Down

0 comments on commit defeb0e

Please sign in to comment.