fix bug on NewEngineGroup

This commit is contained in:
Lunny Xiao 2017-09-26 13:19:33 +08:00
parent 0e47f0d3c7
commit 8abcd18bbd
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ func NewEngineGroup(args1 interface{}, args2 interface{}, policies ...GroupPolic
for i := 0; i < len(slaves); i++ { for i := 0; i < len(slaves); i++ {
slaves[i].engineGroup = &eg slaves[i].engineGroup = &eg
} }
eg.Engine = master
eg.slaves = slaves
return &eg, nil return &eg, nil
} }
return nil, ErrParamsType return nil, ErrParamsType