stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
224 stars 117 forks source link

Update ListReferencedMemorys to recover the memories asynchronously #204

Closed lorenzb07 closed 2 years ago

lorenzb07 commented 2 years ago

For my use case, I need to recover many memories info and the method ListReferencedMemorys is too slow beacuse calls the GetMemory sequentially. This pull request recovers the memories using channel and goroutine.

stmcginnis commented 2 years ago

Issue with the linting job, but I can clean that up separately.

lorenzb07 commented 2 years ago

In this pull request there is an error. A wg.Add(1) is missing.

The new pull request tahat fix this is 209