]> source.dussan.org Git - gitea.git/commit
Make modules/context.Context a context.Context (#16031)
authorzeripath <art27@cantab.net>
Mon, 31 May 2021 06:18:11 +0000 (07:18 +0100)
committerGitHub <noreply@github.com>
Mon, 31 May 2021 06:18:11 +0000 (02:18 -0400)
commit3183a465d71a13535e52589bb85b987176872fcd
tree03d1cb88627176f35e168cda5e46df197dcc3110
parent518ed504ef8714eeac126fc59ff57f50a98e3692
Make modules/context.Context a context.Context (#16031)

* Make modules/context.Context a context.Context

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Simplify context calls

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Set the base context for requests to the HammerContext

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
14 files changed:
modules/context/context.go
modules/graceful/server_http.go
routers/admin/users.go
routers/api/v1/admin/user.go
routers/events/events.go
routers/install.go
routers/private/manager.go
routers/private/restore_repo.go
routers/repo/blame.go
routers/repo/lfs.go
routers/user/auth.go
routers/user/auth_openid.go
routers/user/setting/account.go
services/archiver/archiver.go