Merge pull request #14493 from demoManito/style/format-import-order

etcd: format import order
This commit is contained in:
Benjamin Wang 2022-09-21 06:03:31 +08:00 committed by GitHub
commit 2441a24cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 20 deletions

View File

@ -18,9 +18,9 @@ go get go.etcd.io/etcd/v3/client
package main
import (
"context"
"log"
"time"
"context"
"go.etcd.io/etcd/v3/client"
)

View File

@ -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 (

View File

@ -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{}

View File

@ -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) {

View File

@ -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 (

View File

@ -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) {

View File

@ -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) {