diff --git a/config/config.go b/config/config.go index b8b6d30..490c346 100644 --- a/config/config.go +++ b/config/config.go @@ -87,10 +87,10 @@ func (s *ServerConfig) LoadConfig() error { func (s *ServerConfig) GetToken() string { switch s.LoadBalancing { - case "round-robin": - return s.getRoundRobinToken() - default: + case "random": return s.getRandomToken() + default: + return s.getRoundRobinToken() } }