avoid setting a nil context

This commit is contained in:
A.Unger
2020-07-09 14:29:42 +02:00
parent 94adb97ac1
commit 9ddf0d555b

View File

@@ -147,7 +147,7 @@ func (p *MultiHostReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request
Msgf("policy %v is not configured", pol)
}
var ctx context.Context
ctx := context.Background()
var span *trace.Span
// Start root span.