api: uses stdlib context

This commit is contained in:
André Carvalho 2017-04-20 09:57:46 -03:00
parent 349922b38c
commit 11fae2ef0c
No known key found for this signature in database
GPG Key ID: 440C9C458D3A1E61
3 changed files with 3 additions and 5 deletions

View File

@ -15,6 +15,7 @@
package api package api
import ( import (
"context"
"io/ioutil" "io/ioutil"
"net" "net"
"net/http" "net/http"
@ -23,7 +24,6 @@ import (
"strings" "strings"
"time" "time"
"golang.org/x/net/context"
"golang.org/x/net/context/ctxhttp" "golang.org/x/net/context/ctxhttp"
) )

View File

@ -16,14 +16,13 @@
package v1 package v1
import ( import (
"context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"net/http" "net/http"
"strconv" "strconv"
"time" "time"
"golang.org/x/net/context"
"github.com/prometheus/client_golang/api" "github.com/prometheus/client_golang/api"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
) )

View File

@ -14,6 +14,7 @@
package v1 package v1
import ( import (
"context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"net/http" "net/http"
@ -23,8 +24,6 @@ import (
"testing" "testing"
"time" "time"
"golang.org/x/net/context"
"github.com/prometheus/common/model" "github.com/prometheus/common/model"
) )