move to std context package

This commit is contained in:
Jimmy Zelinskie 2016-08-16 22:32:15 -04:00
parent 84a5e22d42
commit fc13031d96
5 changed files with 5 additions and 6 deletions

View file

@ -1,7 +1,7 @@
package frontend package frontend
import ( import (
"golang.org/x/net/context" "context"
"github.com/chihaya/chihaya/bittorrent" "github.com/chihaya/chihaya/bittorrent"
) )

View file

@ -3,6 +3,7 @@
package http package http
import ( import (
"context"
"net" "net"
"net/http" "net/http"
"time" "time"
@ -10,7 +11,6 @@ import (
"github.com/julienschmidt/httprouter" "github.com/julienschmidt/httprouter"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"github.com/tylerb/graceful" "github.com/tylerb/graceful"
"golang.org/x/net/context"
"github.com/chihaya/chihaya/frontend" "github.com/chihaya/chihaya/frontend"
) )

View file

@ -4,6 +4,7 @@ package udp
import ( import (
"bytes" "bytes"
"context"
"encoding/binary" "encoding/binary"
"log" "log"
"net" "net"
@ -11,7 +12,6 @@ import (
"time" "time"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"golang.org/x/net/context"
"github.com/chihaya/chihaya/bittorrent" "github.com/chihaya/chihaya/bittorrent"
"github.com/chihaya/chihaya/frontend" "github.com/chihaya/chihaya/frontend"

View file

@ -1,7 +1,7 @@
package middleware package middleware
import ( import (
"golang.org/x/net/context" "context"
"github.com/chihaya/chihaya/bittorrent" "github.com/chihaya/chihaya/bittorrent"
) )

View file

@ -3,11 +3,10 @@
package middleware package middleware
import ( import (
"context"
"log" "log"
"time" "time"
"golang.org/x/net/context"
"github.com/chihaya/chihaya/bittorrent" "github.com/chihaya/chihaya/bittorrent"
"github.com/chihaya/chihaya/frontend" "github.com/chihaya/chihaya/frontend"
"github.com/chihaya/chihaya/storage" "github.com/chihaya/chihaya/storage"