Fix broken FlushAll (#10101)
Fix broken FlushAll (#10101)

* go function contexting is not what you expect

* Apply suggestions from code review

Co-Authored-By: Lauris BH <f3041c4c693c07149804ea655e75ee8bb856bd26@nix.lv>

Co-authored-by: Lauris BH <f3041c4c693c07149804ea655e75ee8bb856bd26@nix.lv>

lafriks/gitea,go-gitea/gitea,vdbt/gitea,go-gitea/gitea,sapk-fork/gitea,sapk-fork/gitea,sapk-fork/gitea,cez81/gitea,vCaesar/gitea,cez81/gitea,go-gitea/gitea,lafriks/gitea,lafriks/gitea,sapk-fork/gitea,vdbt/gitea,cez81/gitea,vCaesar/gitea