Skip to content

Commit 063c7cf

Browse files
committed
Mod:format import
1 parent 2731a7d commit 063c7cf

40 files changed

+70
-51
lines changed

cluster/cluster_impl/base_cluster_invoker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package cluster
22

33
import (
44
gxnet "github.com/AlexStocks/goext/net"
5-
"github.com/dubbo/go-for-apache-dubbo/common"
65
jerrors "github.com/juju/errors"
76
"github.com/tevino/abool"
87
)
98

109
import (
1110
"github.com/dubbo/go-for-apache-dubbo/cluster"
11+
"github.com/dubbo/go-for-apache-dubbo/common"
1212
"github.com/dubbo/go-for-apache-dubbo/protocol"
1313
"github.com/dubbo/go-for-apache-dubbo/version"
1414
)

cluster/directory/base_directory.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
package directory
22

33
import (
4-
"github.com/dubbo/go-for-apache-dubbo/common"
5-
"github.com/tevino/abool"
64
"sync"
75
)
6+
import (
7+
"github.com/tevino/abool"
8+
)
9+
import (
10+
"github.com/dubbo/go-for-apache-dubbo/common"
11+
)
812

913
type BaseDirectory struct {
1014
url *common.URL

cluster/directory/service_array.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ package directory
33
import (
44
"context"
55
"fmt"
6-
"github.com/dubbo/go-for-apache-dubbo/common"
76
"strings"
87
"time"
98
)
109

1110
import (
1211
jerrors "github.com/juju/errors"
1312
)
13+
import (
14+
"github.com/dubbo/go-for-apache-dubbo/common"
15+
)
1416

1517
//////////////////////////////////////////
1618
// registry array

cluster/loadbalance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package cluster
22

33
import (
4-
"github.com/dubbo/go-for-apache-dubbo/common"
54
"time"
65
)
76

87
import (
8+
"github.com/dubbo/go-for-apache-dubbo/common"
99
"github.com/dubbo/go-for-apache-dubbo/common/constant"
1010
"github.com/dubbo/go-for-apache-dubbo/protocol"
1111
)

cluster/loadbalance/random.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package loadbalance
22

33
import (
4-
"github.com/dubbo/go-for-apache-dubbo/common"
54
"math/rand"
65
)
76

87
import (
98
"github.com/dubbo/go-for-apache-dubbo/cluster"
9+
"github.com/dubbo/go-for-apache-dubbo/common"
1010
"github.com/dubbo/go-for-apache-dubbo/common/extension"
1111
"github.com/dubbo/go-for-apache-dubbo/protocol"
1212
)

common/proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package proxy
22

33
import (
4-
"github.com/dubbo/go-for-apache-dubbo/common"
54
"reflect"
65
)
76
import (
87
log "github.com/AlexStocks/log4go"
98
)
109

1110
import (
11+
"github.com/dubbo/go-for-apache-dubbo/common"
1212
"github.com/dubbo/go-for-apache-dubbo/protocol"
1313
"github.com/dubbo/go-for-apache-dubbo/protocol/invocation"
1414
)

common/proxy/proxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package proxy
33
import (
44
"context"
55
"errors"
6-
"github.com/dubbo/go-for-apache-dubbo/common"
76
"testing"
87
)
98

@@ -12,6 +11,7 @@ import (
1211
)
1312

1413
import (
14+
"github.com/dubbo/go-for-apache-dubbo/common"
1515
"github.com/dubbo/go-for-apache-dubbo/protocol"
1616
)
1717

config/reference_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ package config
22

33
import (
44
"context"
5-
"github.com/dubbo/go-for-apache-dubbo/common"
65
"net/url"
76
"strconv"
87
"time"
98
)
109

1110
import (
1211
"github.com/dubbo/go-for-apache-dubbo/cluster/directory"
12+
"github.com/dubbo/go-for-apache-dubbo/common"
1313
"github.com/dubbo/go-for-apache-dubbo/common/constant"
1414
"github.com/dubbo/go-for-apache-dubbo/common/extension"
1515
"github.com/dubbo/go-for-apache-dubbo/common/proxy"

config/registry_config.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ package config
22

33
import (
44
"context"
5-
"github.com/dubbo/go-for-apache-dubbo/common"
6-
"github.com/dubbo/go-for-apache-dubbo/common/constant"
75
"net/url"
86
"strconv"
97
)
108
import (
119
log "github.com/AlexStocks/log4go"
1210
)
1311

12+
import (
13+
"github.com/dubbo/go-for-apache-dubbo/common"
14+
"github.com/dubbo/go-for-apache-dubbo/common/constant"
15+
)
16+
1417
type RegistryConfig struct {
1518
Id string `required:"true" yaml:"id" json:"id,omitempty"`
1619
Type string `required:"true" yaml:"type" json:"type,omitempty"`

config/service_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package config
22

33
import (
44
"context"
5-
"github.com/dubbo/go-for-apache-dubbo/common"
65
"net/url"
76
"strconv"
87
"strings"
@@ -15,6 +14,7 @@ import (
1514
"go.uber.org/atomic"
1615
)
1716
import (
17+
"github.com/dubbo/go-for-apache-dubbo/common"
1818
"github.com/dubbo/go-for-apache-dubbo/common/constant"
1919
"github.com/dubbo/go-for-apache-dubbo/common/extension"
2020
"github.com/dubbo/go-for-apache-dubbo/protocol"

0 commit comments

Comments
 (0)