From 11fae2ef0cd316719760faf184a09b7e047e0ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carvalho?= Date: Thu, 20 Apr 2017 09:57:46 -0300 Subject: [PATCH] api: uses stdlib context --- api/client.go | 2 +- api/prometheus/v1/api.go | 3 +-- api/prometheus/v1/api_test.go | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/api/client.go b/api/client.go index c3f6cc8..1aa1591 100644 --- a/api/client.go +++ b/api/client.go @@ -15,6 +15,7 @@ package api import ( + "context" "io/ioutil" "net" "net/http" @@ -23,7 +24,6 @@ import ( "strings" "time" - "golang.org/x/net/context" "golang.org/x/net/context/ctxhttp" ) diff --git a/api/prometheus/v1/api.go b/api/prometheus/v1/api.go index 99bc0cd..d849b09 100644 --- a/api/prometheus/v1/api.go +++ b/api/prometheus/v1/api.go @@ -16,14 +16,13 @@ package v1 import ( + "context" "encoding/json" "fmt" "net/http" "strconv" "time" - "golang.org/x/net/context" - "github.com/prometheus/client_golang/api" "github.com/prometheus/common/model" ) diff --git a/api/prometheus/v1/api_test.go b/api/prometheus/v1/api_test.go index 57a9192..0b7a635 100644 --- a/api/prometheus/v1/api_test.go +++ b/api/prometheus/v1/api_test.go @@ -14,6 +14,7 @@ package v1 import ( + "context" "encoding/json" "fmt" "net/http" @@ -23,8 +24,6 @@ import ( "testing" "time" - "golang.org/x/net/context" - "github.com/prometheus/common/model" )