Skip to content
Snippets Groups Projects
Commit 071c929d authored by 邹毅贤's avatar 邹毅贤
Browse files

format package

parent f4415b7c
No related branches found
No related tags found
No related merge requests found
......@@ -18,14 +18,16 @@
package directory
import (
"github.com/apache/dubbo-go/cluster/router"
"github.com/apache/dubbo-go/cluster/router/chain"
"sync"
)
import (
"go.uber.org/atomic"
)
import (
"github.com/apache/dubbo-go/cluster/router"
"github.com/apache/dubbo-go/cluster/router/chain"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
......
......@@ -17,14 +17,20 @@
package chain
import (
"sort"
)
import (
perrors "github.com/pkg/errors"
)
import (
"github.com/apache/dubbo-go/cluster/router"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/protocol"
perrors "github.com/pkg/errors"
"sort"
)
// RouterChain Router chain
......
......@@ -19,20 +19,23 @@ package chain
import (
"context"
"github.com/apache/dubbo-go/cluster/router/condition"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/config"
"github.com/apache/dubbo-go/common/extension"
_ "github.com/apache/dubbo-go/config_center/zookeeper"
"github.com/apache/dubbo-go/remoting/zookeeper"
"github.com/stretchr/testify/assert"
"strconv"
"testing"
"time"
)
import (
"github.com/stretchr/testify/assert"
)
import (
"github.com/apache/dubbo-go/cluster/router/condition"
_ "github.com/apache/dubbo-go/cluster/router/condition"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/config"
"github.com/apache/dubbo-go/common/extension"
_ "github.com/apache/dubbo-go/config_center/zookeeper"
"github.com/apache/dubbo-go/remoting/zookeeper"
)
func TestNewRouterChain(t *testing.T) {
......
......@@ -18,23 +18,23 @@
package condition
import (
matcher "github.com/apache/dubbo-go/cluster/router/match"
"reflect"
"regexp"
"strings"
)
import (
gxset "github.com/dubbogo/gost/container/set"
gxnet "github.com/dubbogo/gost/net"
perrors "github.com/pkg/errors"
)
import (
matcher "github.com/apache/dubbo-go/cluster/router/match"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/protocol"
gxset "github.com/dubbogo/gost/container/set"
gxnet "github.com/dubbogo/gost/net"
)
const (
......
......@@ -17,7 +17,9 @@
package condition
import "gopkg.in/yaml.v2"
import (
"gopkg.in/yaml.v2"
)
/* Parse
* scope: application
......
......@@ -18,11 +18,11 @@
package config_center
import (
"github.com/apache/dubbo-go/common"
"time"
)
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/config_center/parser"
)
......
......@@ -18,7 +18,6 @@
package directory
import (
"github.com/apache/dubbo-go/cluster/router"
"strings"
"sync"
"time"
......@@ -31,6 +30,7 @@ import (
import (
"github.com/apache/dubbo-go/cluster/directory"
"github.com/apache/dubbo-go/cluster/router"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment