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

Mod:format code

parent ef4e4aff
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
......@@ -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"
)
......
......@@ -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"
......
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