Skip to content

Commit

Permalink
style: Format imports by goimports tool
Browse files Browse the repository at this point in the history
Format imports by goimports tool.

Fixes: apache#2300

Signed-off-by: Xuewei Niu <[email protected]>
  • Loading branch information
justxuewei committed Apr 11, 2023
1 parent 3fcc135 commit 1839c01
Show file tree
Hide file tree
Showing 561 changed files with 684 additions and 2,973 deletions.
2 changes: 0 additions & 2 deletions cluster/cluster/adaptivesvc/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ package adaptivesvc

import (
"sync"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/common/constant"
Expand Down
8 changes: 2 additions & 6 deletions cluster/cluster/adaptivesvc/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ package adaptivesvc
import (
"context"
"strconv"
)

import (
"github.com/dubbogo/gost/log/logger"

perrors "github.com/pkg/errors"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/cluster/metrics"
perrors "github.com/pkg/errors"

clsutils "dubbo.apache.org/dubbo-go/v3/cluster/utils"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/common/extension"
Expand Down
7 changes: 1 addition & 6 deletions cluster/cluster/available/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,11 @@ package available
import (
"context"
"fmt"
)

import (
"github.com/pkg/errors"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/protocol"
"github.com/pkg/errors"
)

type availableClusterInvoker struct {
Expand Down
5 changes: 0 additions & 5 deletions cluster/cluster/available/cluster_invoker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,10 @@ import (
"fmt"
"strings"
"testing"
)

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory/static"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
Expand Down
5 changes: 1 addition & 4 deletions cluster/cluster/base/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ import (

perrors "github.com/pkg/errors"

"go.uber.org/atomic"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance"
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/common/extension"
"dubbo.apache.org/dubbo-go/v3/protocol"
"go.uber.org/atomic"
)

type BaseClusterInvoker struct {
Expand Down
4 changes: 0 additions & 4 deletions cluster/cluster/base/cluster_invoker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,9 @@ package base
import (
"fmt"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
"dubbo.apache.org/dubbo-go/v3/common"
Expand Down
7 changes: 1 addition & 6 deletions cluster/cluster/broadcast/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,11 @@ package broadcast

import (
"context"
)

import (
"github.com/dubbogo/gost/log/logger"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/protocol"
"github.com/dubbogo/gost/log/logger"
)

type broadcastClusterInvoker struct {
Expand Down
5 changes: 0 additions & 5 deletions cluster/cluster/broadcast/cluster_invoker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,10 @@ import (
"errors"
"fmt"
"testing"
)

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory/static"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
Expand Down
2 changes: 0 additions & 2 deletions cluster/cluster/cluster_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ package cluster

import (
"context"
)

import (
"dubbo.apache.org/dubbo-go/v3/protocol"
)

Expand Down
10 changes: 2 additions & 8 deletions cluster/cluster/failback/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,15 @@ import (
"strconv"
"sync"
"time"
)

import (
"github.com/Workiva/go-datastructures/queue"

"github.com/dubbogo/gost/log/logger"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/common/extension"
"dubbo.apache.org/dubbo-go/v3/protocol"
"github.com/Workiva/go-datastructures/queue"
"github.com/dubbogo/gost/log/logger"
)

/**
Expand Down
5 changes: 0 additions & 5 deletions cluster/cluster/failback/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,12 @@ import (
"sync"
"testing"
"time"
)

import (
"github.com/golang/mock/gomock"

perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory/static"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
Expand Down
2 changes: 0 additions & 2 deletions cluster/cluster/failfast/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ package failfast

import (
"context"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/protocol"
Expand Down
5 changes: 0 additions & 5 deletions cluster/cluster/failfast/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,12 @@ import (
"context"
"fmt"
"testing"
)

import (
"github.com/golang/mock/gomock"

perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory/static"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
Expand Down
7 changes: 1 addition & 6 deletions cluster/cluster/failover/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,15 @@ import (
"context"
"fmt"
"strconv"
)

import (
"github.com/dubbogo/gost/log/logger"

perrors "github.com/pkg/errors"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/protocol"
perrors "github.com/pkg/errors"
)

type failoverClusterInvoker struct {
Expand Down
4 changes: 0 additions & 4 deletions cluster/cluster/failover/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ import (
"fmt"
"net/url"
"testing"
)

import (
"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory/static"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
Expand Down
7 changes: 1 addition & 6 deletions cluster/cluster/failsafe/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@ package failsafe

import (
"context"
)

import (
"github.com/dubbogo/gost/log/logger"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/common/extension"
"dubbo.apache.org/dubbo-go/v3/protocol"
"github.com/dubbogo/gost/log/logger"
)

/**
Expand Down
5 changes: 0 additions & 5 deletions cluster/cluster/failsafe/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,12 @@ import (
"context"
"fmt"
"testing"
)

import (
"github.com/golang/mock/gomock"

perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory/static"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
Expand Down
10 changes: 2 additions & 8 deletions cluster/cluster/forking/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,13 @@ import (
"context"
"fmt"
"time"
)

import (
"github.com/Workiva/go-datastructures/queue"

"github.com/dubbogo/gost/log/logger"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/protocol"
"github.com/Workiva/go-datastructures/queue"
"github.com/dubbogo/gost/log/logger"
)

type forkingClusterInvoker struct {
Expand Down
5 changes: 0 additions & 5 deletions cluster/cluster/forking/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,10 @@ import (
"sync"
"testing"
"time"
)

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory/static"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/roundrobin"
Expand Down
2 changes: 0 additions & 2 deletions cluster/cluster/interceptor_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ package cluster
import (
"context"
"sync"
)

import (
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/protocol"
)
Expand Down
7 changes: 1 addition & 6 deletions cluster/cluster/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@ package cluster

import (
"context"
)

import (
"github.com/dubbogo/gost/log/logger"

perrors "github.com/pkg/errors"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/protocol"
perrors "github.com/pkg/errors"
)

var Count int
Expand Down
2 changes: 0 additions & 2 deletions cluster/cluster/zoneaware/cluster_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ package zoneaware

import (
"context"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/protocol"
Expand Down
2 changes: 0 additions & 2 deletions cluster/cluster/zoneaware/cluster_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ package zoneaware
import (
"context"
"fmt"
)

import (
"dubbo.apache.org/dubbo-go/v3/cluster/cluster/base"
"dubbo.apache.org/dubbo-go/v3/cluster/directory"
"dubbo.apache.org/dubbo-go/v3/common/constant"
Expand Down
5 changes: 0 additions & 5 deletions cluster/cluster/zoneaware/cluster_invoker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,10 @@ import (
"context"
"fmt"
"testing"
)

import (
"github.com/golang/mock/gomock"

"github.com/stretchr/testify/assert"
)

import (
clusterpkg "dubbo.apache.org/dubbo-go/v3/cluster/cluster"
"dubbo.apache.org/dubbo-go/v3/cluster/directory/static"
"dubbo.apache.org/dubbo-go/v3/cluster/loadbalance/random"
Expand Down
Loading

0 comments on commit 1839c01

Please sign in to comment.