Browse Source

Merge pull request #1841 from allencloud/use-buildtin-package-context

use builtin package context rather than vendored one
Santhosh Manohar 8 năm trước cách đây
mục cha
commit
f6163048e1

+ 2 - 1
libnetwork/cluster/provider.go

@@ -1,8 +1,9 @@
 package cluster
 package cluster
 
 
 import (
 import (
+	"context"
+
 	"github.com/docker/docker/api/types/network"
 	"github.com/docker/docker/api/types/network"
-	"golang.org/x/net/context"
 )
 )
 
 
 const (
 const (

+ 1 - 1
libnetwork/cmd/dnet/dnet.go

@@ -2,6 +2,7 @@ package main
 
 
 import (
 import (
 	"bytes"
 	"bytes"
+	"context"
 	"encoding/json"
 	"encoding/json"
 	"errors"
 	"errors"
 	"fmt"
 	"fmt"
@@ -36,7 +37,6 @@ import (
 	"github.com/docker/libnetwork/options"
 	"github.com/docker/libnetwork/options"
 	"github.com/docker/libnetwork/types"
 	"github.com/docker/libnetwork/types"
 	"github.com/gorilla/mux"
 	"github.com/gorilla/mux"
-	"golang.org/x/net/context"
 )
 )
 
 
 const (
 const (