Closed POABOB closed 1 year ago
All done. @panjf2000
Above done. @panjf2000
Done. @panjf2000
Patch coverage: 100.00%
and project coverage change: +1.59%
:tada:
Comparison is base (
1ce8146
) 92.48% compared to head (a92f6c8
) 94.08%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Done. @panjf2000
Thank you for your contribution! @POABOB
name: Pull request about: Propose changes to the code title: 'make func of retrieveWorker() more readable.' labels: '' assignees: ''
1. Are you opening this pull request for bug-fixs, optimizations or new feature?
refactor
2. Please describe how these code changes achieve your intention.
I noticed that when I call
retrieveWorker()
, it processes two repetitive functions:detach()
andcapacity == -1 || capacity > p.Running()
in theelse
block. Thus, I move theretry
label to the first instance of thedetach()
function and made a little change of if-else block. It didn't affect the logic, but it is more readable.before
after
3. Please link to the relevant issues (if any).
No
4. Which documentation changes (if any) need to be made/updated because of this PR?
No
4. Checklist