chore: remove all remaining uses of golang.org/x/net/context (#47564) (#47585)

* chore: remove all remaining uses of  golang.org/x/net/context

This PR finishes the work started in #47532, replacing all calls to that package with the stdlib context and using http.NewRequestWithContext to include the context where necessary.

Bonus: small formatting fixes to goimports in these files.

closes #44178

* tweak: use context.Background in favor of TODO for tests

(cherry picked from commit 8f6877e12a)

Co-authored-by: Kristin Laemmert <mildwonkey@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-04-12 08:15:28 -04:00
committed by GitHub
co-authored by Kristin Laemmert
parent cce492b246
commit 9af9cd39cd
10 changed files with 36 additions and 38 deletions
+1 -1
View File
@@ -1,6 +1,7 @@
package expr
import (
"context"
"encoding/json"
"fmt"
"time"
@@ -8,7 +9,6 @@ import (
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana/pkg/models"
"github.com/prometheus/client_golang/prometheus"
"golang.org/x/net/context"
)
var (