mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
round-robin LB as default case
This commit is contained in:
+3
-3
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user