Skip to content
Snippets Groups Projects
Commit a94ead8e authored by tiecheng's avatar tiecheng
Browse files

sort import and change dynamic_configuration.go#RemoveConfig comment

parent 934ad5c4
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,8 @@ type DynamicConfiguration interface {
// PublishConfig will publish the config with the (key, group, value) pair
PublishConfig(string, string, string) error
// PublishConfig will remove the config white the (key, group) pair
// RemoveConfig will remove the config white the (key, group) pair
RemoveConfig(string, string) error
// GetConfigKeysByGroup will return all keys with the group
......
......@@ -31,14 +31,14 @@ import (
)
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/config_center"
"github.com/apache/dubbo-go/config_center/parser"
gxset "github.com/dubbogo/gost/container/set"
perrors "github.com/pkg/errors"
)
import (
gxset "github.com/dubbogo/gost/container/set"
perrors "github.com/pkg/errors"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/config_center"
"github.com/apache/dubbo-go/config_center/parser"
)
const (
......
......@@ -26,13 +26,13 @@ import (
)
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/config_center"
"github.com/stretchr/testify/assert"
)
import (
"github.com/stretchr/testify/assert"
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/config_center"
)
const (
......
......@@ -22,6 +22,10 @@ import (
"sync"
)
import (
"github.com/fsnotify/fsnotify"
)
import (
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/common/logger"
......@@ -29,10 +33,6 @@ import (
"github.com/apache/dubbo-go/remoting"
)
import (
"github.com/fsnotify/fsnotify"
)
type CacheListener struct {
watch *fsnotify.Watcher
keyListeners sync.Map
......
......@@ -27,6 +27,12 @@ import (
"sync"
)
import (
gxset "github.com/dubbogo/gost/container/set"
gxpage "github.com/dubbogo/gost/page"
perrors "github.com/pkg/errors"
)
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
......@@ -38,12 +44,6 @@ import (
"github.com/apache/dubbo-go/registry"
)
import (
gxset "github.com/dubbogo/gost/container/set"
gxpage "github.com/dubbogo/gost/page"
perrors "github.com/pkg/errors"
)
var (
// 16 would be enough. We won't use concurrentMap because in most cases, there are not race condition
instanceMap = make(map[string]registry.ServiceDiscovery, 16)
......
......@@ -24,6 +24,10 @@ import (
"time"
)
import (
"github.com/stretchr/testify/assert"
)
import (
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
......@@ -31,10 +35,6 @@ import (
"github.com/apache/dubbo-go/registry"
)
import (
"github.com/stretchr/testify/assert"
)
var (
testName = "test"
)
......
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