eureka: fix fallthrough from int to bool when writing config; v0.5.1

This commit is contained in:
Iris Lightshard 2023-01-30 22:16:10 -07:00
parent ea6a8598d8
commit 2e997414f4
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -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 {