+
Skip to content

cannot parse int to int16 value #76

@ryanhall07

Description

@ryanhall07

hcl config:

kafka {
  replication-factor = 3
}

struct to set

type KafkaConfig struct {
	BootstrapServer   string `help:"The advertised address and port of the kafka brokers" default:"localhost:9093"`
	ReplicationFactor int16  `help:"The replication factor for topics" default:"1"`
}
 panic: mapper kong.MapperFunc failed to apply to --kafka-replication-factor=1: reflect.Set: value of type int is not assignable to type int16 [recovered]

happens at

kong/mapper.go

Line 340 in 51a1ea9

target.Set(reflect.ValueOf(v))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载