change the default policy of engine group

This commit is contained in:
Lunny Xiao 2017-09-28 17:37:39 +08:00
parent e5e4d6078e
commit 76fee8b2a8
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ func NewEngineGroup(args1 interface{}, args2 interface{}, policies ...GroupPolic
if len(policies) > 0 { if len(policies) > 0 {
eg.policy = policies[0] eg.policy = policies[0]
} else { } else {
eg.policy = RandomPolicy() eg.policy = RoundRobinPolicy()
} }
driverName, ok1 := args1.(string) driverName, ok1 := args1.(string)