aboutsummaryrefslogtreecommitdiffstats
path: root/modules/test/context_tests.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-02-08 18:53:34 +0000
committerGitHub <noreply@github.com>2022-02-08 13:53:34 -0500
commitf8b21ac04a02a784fe14941e5c89940448694b8c (patch)
tree15764eb02242278a7ef348946bddeef04b8d5963 /modules/test/context_tests.go
parentc14ca34d576ab6be82ff93c05ddd1a9537269830 (diff)
downloadgitea-f8b21ac04a02a784fe14941e5c89940448694b8c.tar.gz
gitea-f8b21ac04a02a784fe14941e5c89940448694b8c.zip
Simplify Boost/Pause logic (#18673)
* Simplify Boost/Pause logic #18658 has added a check to see if we need to boost because there is still work to do however the check is slightly complex and not ideal. There's no point boosting if the queue is paused or can't scale. Therefore merge the two selects into one and add a check to p.paused. Signed-off-by: Andrew Thornton <art27@cantab.net> * And on resume add a zeroboost if necessary Signed-off-by: Andrew Thornton <art27@cantab.net> * simplify Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/test/context_tests.go')
0 files changed, 0 insertions, 0 deletions