diff --git a/common/url.go b/common/url.go index 4afec932d9539255cf5ec7a570bb5726577e2dbb..a6223d547c6a990e4452068153a956452e126c13 100644 --- a/common/url.go +++ b/common/url.go @@ -193,18 +193,6 @@ func NewURL(ctx context.Context, urlString string, opts ...option) (URL, error) return s, perrors.Errorf("net.SplitHostPort(Url.Host{%s}), error{%v}", s.Location, err) } } - // - //timeoutStr := s.Params.Get("timeout") - //if len(timeoutStr) == 0 { - // timeoutStr = s.Params.Get("default.timeout") - //} - //if len(timeoutStr) != 0 { - // timeout, err := strconv.Atoi(timeoutStr) - // if err == nil && timeout != 0 { - // s.Timeout = time.Duration(timeout * 1e6) // timeout unit is millisecond - // } - //} - //fmt.Println(s.String()) for _, opt := range opts { opt(&s) } diff --git a/config/provider_config.go b/config/provider_config.go index b2f44ea00a7cfdff2763e49fa3b3fa9a14135b1c..fc7a4d50d2ede6c3a64dade9c90914e3b5d51779 100644 --- a/config/provider_config.go +++ b/config/provider_config.go @@ -18,7 +18,6 @@ package config import ( "context" - "github.com/apache/dubbo-go/common/constant" "io/ioutil" "path" ) @@ -27,7 +26,9 @@ import ( perrors "github.com/pkg/errors" "gopkg.in/yaml.v2" ) + import ( + "github.com/apache/dubbo-go/common/constant" "github.com/apache/dubbo-go/common/logger" ) diff --git a/config_center/zookeeper/impl_test.go b/config_center/zookeeper/impl_test.go index 2ef66ae84c79c5d69aeeffce703dccece084e65c..26b899e82d7f1878d13e7dab113524be09ebde34 100644 --- a/config_center/zookeeper/impl_test.go +++ b/config_center/zookeeper/impl_test.go @@ -22,10 +22,12 @@ import ( "sync" "testing" ) + import ( "github.com/samuel/go-zookeeper/zk" "github.com/stretchr/testify/assert" ) + import ( "github.com/apache/dubbo-go/common" "github.com/apache/dubbo-go/config_center"