mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd: format import order
golang CodeReviewComments: https://github.com/golang/go/wiki/CodeReviewComments#imports Signed-off-by: demoManito <1430482733@qq.com>
This commit is contained in:
parent
8650ae83f7
commit
f67ec10779
@ -18,11 +18,11 @@ go get go.etcd.io/etcd/v3/client
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"time"
|
||||
"context"
|
||||
|
||||
"go.etcd.io/etcd/v3/client"
|
||||
"context"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"go.etcd.io/etcd/v3/client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -16,11 +16,11 @@ package clientv3
|
||||
|
||||
import (
|
||||
"context"
|
||||
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||
|
||||
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||
|
||||
"google.golang.org/grpc"
|
||||
|
||||
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -1,10 +1,12 @@
|
||||
package clientv3
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
grpccredentials "google.golang.org/grpc/credentials"
|
||||
|
||||
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||
"go.etcd.io/etcd/client/v3/credentials"
|
||||
grpccredentials "google.golang.org/grpc/credentials"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type dummyAuthTokenBundle struct{}
|
||||
|
@ -15,9 +15,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"go.etcd.io/etcd/raft/v3/raftpb"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"go.etcd.io/etcd/raft/v3/raftpb"
|
||||
)
|
||||
|
||||
func TestProcessMessages(t *testing.T) {
|
||||
|
@ -19,7 +19,6 @@ package v3discovery
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"math"
|
||||
"path"
|
||||
"sort"
|
||||
@ -27,11 +26,11 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"go.etcd.io/etcd/client/pkg/v3/types"
|
||||
"go.etcd.io/etcd/client/v3"
|
||||
|
||||
"github.com/jonboulle/clockwork"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"go.etcd.io/etcd/client/pkg/v3/types"
|
||||
clientv3 "go.etcd.io/etcd/client/v3"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -15,9 +15,10 @@
|
||||
package v3rpc
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCheckRangeRequest(t *testing.T) {
|
||||
|
@ -18,14 +18,15 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||
clientv3test "go.etcd.io/etcd/tests/v3/integration/clientv3"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"go.etcd.io/etcd/client/v3"
|
||||
integration2 "go.etcd.io/etcd/tests/v3/framework/integration"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||
clientv3 "go.etcd.io/etcd/client/v3"
|
||||
integration2 "go.etcd.io/etcd/tests/v3/framework/integration"
|
||||
clientv3test "go.etcd.io/etcd/tests/v3/integration/clientv3"
|
||||
)
|
||||
|
||||
func TestFailover(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user