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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user