fix bug on NewEngineGroup
This commit is contained in:
parent
0e47f0d3c7
commit
8abcd18bbd
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue