mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 02:07:59 -07:00
Remove unused switch case
This commit is contained in:
@@ -255,14 +255,6 @@ func (s *Server) diffOptions(newOpts *Options) ([]option, error) {
|
||||
if newValue == 0 {
|
||||
// ignore RANDOM_PORT
|
||||
continue
|
||||
} else {
|
||||
return nil, fmt.Errorf("Config reload not supported for %s: old=%v, new=%v",
|
||||
field.Name, oldValue, newValue)
|
||||
}
|
||||
case "http_port", "https_port":
|
||||
// check to see if newValue == -1 (RANDOM_PORT for http/https monitoring port)
|
||||
if newValue == -1 {
|
||||
continue
|
||||
}
|
||||
fallthrough
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user