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 {
|
for k, v := range self.Config {
|
||||||
switch k.Type {
|
switch k.Type {
|
||||||
case "int":
|
case "int":
|
||||||
|
fallthrough
|
||||||
case "bool":
|
case "bool":
|
||||||
_, err := strconv.ParseInt(v, 10, 64)
|
_, err := strconv.ParseInt(v, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue