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
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"
)

View File

@ -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"
)

View File

@ -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"
)