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:
12
src/group.go
12
src/group.go
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user