mirror of https://github.com/tidwall/tile38.git
Fix
This commit is contained in:
parent
7263b4c2de
commit
86d9557790
|
@ -369,10 +369,11 @@ func (config *Config) setProperty(name, value string, fromLoad bool) error {
|
||||||
announcePort, err := strconv.ParseUint(value, 10, 64)
|
announcePort, err := strconv.ParseUint(value, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
invalid = true
|
invalid = true
|
||||||
}
|
} else {
|
||||||
config._announcePort = int64(announcePort)
|
config._announcePort = int64(announcePort)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if invalid {
|
if invalid {
|
||||||
return clientErrorf("Invalid argument '%s' for CONFIG SET '%s'", value, name)
|
return clientErrorf("Invalid argument '%s' for CONFIG SET '%s'", value, name)
|
||||||
|
|
Loading…
Reference in New Issue