1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
This commit is contained in:
2020-05-03 23:43:47 +08:00
parent 53bb900854
commit 3733aa626b
2 changed files with 2 additions and 5 deletions

View File

@@ -344,11 +344,10 @@ func (pool *ResourcePool) list() MsgResource {
start := pool.pools[0].Next
for cur := start; ; {
cur.Lock.Lock()
cur.Lock.Unlock()
for k, node := range cur.Nodes {
nodes[k] = *node
}
cur.Lock.Unlock()
cur = cur.Next
if cur == start {
break