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

bugfix, update shceduler_fair

This commit is contained in:
2019-08-01 10:42:37 +08:00
parent 8d6383592c
commit 4380d2a7d6
3 changed files with 38 additions and 16 deletions

View File

@@ -61,3 +61,15 @@ func (gm *GroupManager) List() MsgGroupList {
}
return MsgGroupList{Groups: result}
}
func (gm *GroupManager) get(name string) *Group {
defer gm.mu.Unlock()
gm.mu.Lock()
for _, v := range gm.groups {
if v.Name == name {
return &v
}
}
return nil
}