Skip to content
Snippets Groups Projects
Commit a8596b5f authored by vito.he's avatar vito.he
Browse files

Fmt:format code

parent 0039ac6f
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,11 @@
package config_center
import (
"github.com/apache/dubbo-go/remoting"
"time"
)
import (
"github.com/apache/dubbo-go/remoting"
)
//////////////////////////////////////////
// DynamicConfiguration
......
......@@ -18,7 +18,6 @@
package zookeeper
import (
"github.com/apache/dubbo-go/remoting"
"sync"
)
import (
......@@ -26,10 +25,11 @@ import (
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/config_center"
"github.com/apache/dubbo-go/remoting"
"github.com/apache/dubbo-go/remoting/zookeeper"
)
const ZkClient = "zk config_center"
const ZK_CLIENT = "zk config_center"
type ZookeeperDynamicConfiguration struct {
url common.URL
......@@ -48,7 +48,7 @@ func NewZookeeperDynamicConfiguration(url common.URL) (config_center.DynamicConf
url: url,
rootPath: "/" + url.GetParam(constant.CONFIG_NAMESPACE_KEY, config_center.DEFAULT_GROUP) + "/config",
}
err := zookeeper.ValidateZookeeperClient(c, zookeeper.WithZkName(ZkClient))
err := zookeeper.ValidateZookeeperClient(c, zookeeper.WithZkName(ZK_CLIENT))
if err != nil {
return nil, err
}
......
......@@ -19,13 +19,13 @@ package registry
import (
"fmt"
"github.com/apache/dubbo-go/remoting"
"math/rand"
"time"
)
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/remoting"
)
func init() {
......
......@@ -19,7 +19,6 @@ package zookeeper
import (
"context"
"github.com/apache/dubbo-go/remoting"
)
import (
perrors "github.com/pkg/errors"
......@@ -28,6 +27,7 @@ import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/registry"
"github.com/apache/dubbo-go/remoting"
zk "github.com/apache/dubbo-go/remoting/zookeeper"
)
......
......@@ -45,7 +45,6 @@ import (
)
const (
defaultTimeout = int64(10e9)
RegistryZkClient = "zk registry"
)
......
......@@ -18,7 +18,6 @@
package zookeeper
import (
"github.com/apache/dubbo-go/remoting"
"path"
"sync"
"time"
......@@ -32,6 +31,7 @@ import (
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/remoting"
)
type ZkEventListener struct {
......
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