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

Mod:format

parent 207e246c
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,7 @@ func (s *Service) Method() map[string]*MethodType { ...@@ -133,7 +133,7 @@ func (s *Service) Method() map[string]*MethodType {
return s.methods return s.methods
} }
// Method ... // Name will return service name
func (s *Service) Name() string { func (s *Service) Name() string {
return s.name return s.name
} }
......
...@@ -53,15 +53,6 @@ func Test_refresh(t *testing.T) { ...@@ -53,15 +53,6 @@ func Test_refresh(t *testing.T) {
Owner: "dubbo", Owner: "dubbo",
Environment: "test"}, Environment: "test"},
Registries: map[string]*RegistryConfig{ Registries: map[string]*RegistryConfig{
//"shanghai_reg1": {
// id: "shanghai_reg1",
// Protocol: "mock",
// TimeoutStr: "2s",
// group: "shanghai_idc",
// Address: "127.0.0.1:2181",
// Username: "user1",
// Password: "pwd1",
//},
"shanghai_reg2": { "shanghai_reg2": {
Protocol: "mock", Protocol: "mock",
TimeoutStr: "2s", TimeoutStr: "2s",
...@@ -156,15 +147,6 @@ func Test_appExternal_refresh(t *testing.T) { ...@@ -156,15 +147,6 @@ func Test_appExternal_refresh(t *testing.T) {
Owner: "dubbo", Owner: "dubbo",
Environment: "test"}, Environment: "test"},
Registries: map[string]*RegistryConfig{ Registries: map[string]*RegistryConfig{
//"shanghai_reg1": {
// id: "shanghai_reg1",
// Protocol: "mock",
// TimeoutStr: "2s",
// group: "shanghai_idc",
// Address: "127.0.0.1:2181",
// Username: "user1",
// Password: "pwd1",
//},
"shanghai_reg2": { "shanghai_reg2": {
Protocol: "mock", Protocol: "mock",
TimeoutStr: "2s", TimeoutStr: "2s",
...@@ -251,15 +233,6 @@ func Test_appExternalWithoutId_refresh(t *testing.T) { ...@@ -251,15 +233,6 @@ func Test_appExternalWithoutId_refresh(t *testing.T) {
Owner: "dubbo", Owner: "dubbo",
Environment: "test"}, Environment: "test"},
Registries: map[string]*RegistryConfig{ Registries: map[string]*RegistryConfig{
//"shanghai_reg1": {
// id: "shanghai_reg1",
// Protocol: "mock",
// TimeoutStr: "2s",
// group: "shanghai_idc",
// Address: "127.0.0.1:2181",
// Username: "user1",
// Password: "pwd1",
//},
"shanghai_reg2": { "shanghai_reg2": {
Protocol: "mock", Protocol: "mock",
TimeoutStr: "2s", TimeoutStr: "2s",
...@@ -408,15 +381,6 @@ func Test_refreshProvider(t *testing.T) { ...@@ -408,15 +381,6 @@ func Test_refreshProvider(t *testing.T) {
Owner: "dubbo", Owner: "dubbo",
Environment: "test"}, Environment: "test"},
Registries: map[string]*RegistryConfig{ Registries: map[string]*RegistryConfig{
//"shanghai_reg1": {
// id: "shanghai_reg1",
// Protocol: "mock",
// TimeoutStr: "2s",
// group: "shanghai_idc",
// Address: "127.0.0.1:2181",
// Username: "user1",
// Password: "pwd1",
//},
"shanghai_reg2": { "shanghai_reg2": {
Protocol: "mock", Protocol: "mock",
TimeoutStr: "2s", TimeoutStr: "2s",
......
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
package instance package instance
import ( import (
"github.com/apache/dubbo-go/metadata/report"
"sync" "sync"
) )
import ( import (
"github.com/apache/dubbo-go/common" "github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/extension" "github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/metadata/report"
) )
var ( var (
......
...@@ -18,10 +18,13 @@ ...@@ -18,10 +18,13 @@
package config package config
import ( import (
"go.uber.org/atomic"
"testing" "testing"
) )
import (
"go.uber.org/atomic"
)
import ( import (
"github.com/apache/dubbo-go/common/extension" "github.com/apache/dubbo-go/common/extension"
) )
......
...@@ -159,7 +159,7 @@ func Test_RemoveListener(t *testing.T) { ...@@ -159,7 +159,7 @@ func Test_RemoveListener(t *testing.T) {
func TestZookeeperDynamicConfiguration_PublishConfig(t *testing.T) { func TestZookeeperDynamicConfiguration_PublishConfig(t *testing.T) {
value := "Test Data" value := "Test Data"
customGroup := "Custom group" customGroup := "Custom Group"
key := "myKey" key := "myKey"
ts, zk := initZkData(config_center.DEFAULT_GROUP, t) ts, zk := initZkData(config_center.DEFAULT_GROUP, t)
defer ts.Stop() defer ts.Stop()
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
package dynamic package dynamic
import ( import (
"github.com/apache/dubbo-go/metadata/namemapping"
"strconv" "strconv"
"time" "time"
) )
...@@ -32,6 +31,7 @@ import ( ...@@ -32,6 +31,7 @@ import (
"github.com/apache/dubbo-go/common/constant" "github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/config" "github.com/apache/dubbo-go/config"
"github.com/apache/dubbo-go/config_center" "github.com/apache/dubbo-go/config_center"
"github.com/apache/dubbo-go/metadata/namemapping"
) )
const ( const (
......
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