1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-16 08:26:44 +00:00

update shceduler_fair

This commit is contained in:
2019-08-01 13:42:53 +08:00
parent e178154ca0
commit 74373fb950
6 changed files with 90 additions and 32 deletions

View File

@@ -54,8 +54,7 @@ func (gm *GroupManager) Remove(group Group) MsgGroupCreate {
func (gm *GroupManager) List() MsgGroupList {
defer gm.mu.Unlock()
gm.mu.Lock()
// cannot change to `var`, since it would be json_encoded to null
result := []Group{}
var result []Group
for _, v := range gm.groups {
result = append(result, v)
}