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
import (
"golang.org/x/net/context"
"context"
"github.com/chihaya/chihaya/bittorrent"
)

View file

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

View file

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

View file

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

View file

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