eureka: fix fallthrough from int to bool when writing config; v0.5.1
This commit is contained in:
parent
ea6a8598d8
commit
2e997414f4
1 changed files with 1 additions and 0 deletions
|
@ -393,6 +393,7 @@ func (self *EurekaAdapter) writeCfg() error {
|
|||
for k, v := range self.Config {
|
||||
switch k.Type {
|
||||
case "int":
|
||||
fallthrough
|
||||
case "bool":
|
||||
_, err := strconv.ParseInt(v, 10, 64)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue