pkg/web: remove Router and Logger from Context (#53765)

web.Context previously held references to the current *web.Router albeit
not using it.

It also had a log.Logger only being used once internally
This commit is contained in:
sh0rez
2022-08-16 12:25:27 +02:00
committed by GitHub
parent 47364ae11f
commit 635571db8a
4 changed files with 4 additions and 16 deletions
+1 -2
View File
@@ -86,8 +86,7 @@ func TestContext_RemoteAddr(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
ctx := &Context{
Req: tt.fields.Req,
logger: tt.fields.logger,
Req: tt.fields.Req,
}
if got := ctx.RemoteAddr(); got != tt.want {
t.Errorf("RemoteAddr() = %v, want %v", got, tt.want)