*: replace 'golang.org/x/net/context' with 'context'

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee
2017-09-06 14:57:25 -07:00
parent ff31fb4b8b
commit f65aee0759
175 changed files with 270 additions and 245 deletions

View File

@@ -15,15 +15,15 @@
package main
import (
"context"
"fmt"
"log"
"net/http"
"net/url"
"os"
"strconv"
"time"
"net/http"
"net/url"
"github.com/coreos/etcd/etcdserver/stats"
"github.com/coreos/etcd/pkg/fileutil"
"github.com/coreos/etcd/pkg/types"
@@ -33,7 +33,6 @@ import (
"github.com/coreos/etcd/snap"
"github.com/coreos/etcd/wal"
"github.com/coreos/etcd/wal/walpb"
"golang.org/x/net/context"
)
// A key-value stream backed by raft

View File

@@ -15,9 +15,10 @@
package recipe
import (
"context"
v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"golang.org/x/net/context"
)
// Barrier creates a key in etcd to block processes, then deletes the key to

View File

@@ -15,11 +15,11 @@
package recipe
import (
"context"
"errors"
v3 "github.com/coreos/etcd/clientv3"
spb "github.com/coreos/etcd/mvcc/mvccpb"
"golang.org/x/net/context"
)
var (

View File

@@ -15,10 +15,11 @@
package recipe
import (
"context"
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/concurrency"
"github.com/coreos/etcd/mvcc/mvccpb"
"golang.org/x/net/context"
)
// DoubleBarrier blocks processes on Enter until an expected count enters, then

View File

@@ -15,13 +15,13 @@
package recipe
import (
"context"
"fmt"
"strings"
"time"
v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/concurrency"
"golang.org/x/net/context"
)
// RemoteKV is a key/revision pair created by the client and stored on etcd

View File

@@ -15,11 +15,11 @@
package recipe
import (
"context"
"fmt"
v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"golang.org/x/net/context"
)
// PriorityQueue implements a multi-reader, multi-writer distributed queue.

View File

@@ -15,9 +15,10 @@
package recipe
import (
"context"
v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"golang.org/x/net/context"
)
// Queue implements a multi-reader, multi-writer distributed queue.

View File

@@ -15,10 +15,11 @@
package recipe
import (
"context"
v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/concurrency"
"github.com/coreos/etcd/mvcc/mvccpb"
"golang.org/x/net/context"
)
type RWMutex struct {

View File

@@ -15,9 +15,10 @@
package recipe
import (
"context"
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"golang.org/x/net/context"
)
// WaitEvents waits on a key until it observes the given events and returns the final one.