waku/v2/protocol/content_topic.go
Function StringToContentTopic
has 6 return statements (exceeds 4 allowed). Open
Open
func StringToContentTopic(s string) (ContentTopic, error) {
p := strings.Split(s, "/")
switch len(p) {
case 5:
if len(p[1]) == 0 || len(p[2]) == 0 || len(p[3]) == 0 || len(p[4]) == 0 {
Function NewContentTopic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewContentTopic(applicationName string, applicationVersion string,
contentTopicName string, encoding string, opts ...ContentTopicOption) (ContentTopic, error) {