Skip to content

Commit

Permalink
fix go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pantianying committed Jun 16, 2020
1 parent 4fb7fc5 commit 1ccc120
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
12 changes: 9 additions & 3 deletions metadata/report/etcd/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ package etcd

import (
"encoding/json"
"strings"
"time"
)

import (
perrors "github.com/pkg/errors"
)

import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
Expand All @@ -27,9 +36,6 @@ import (
"github.com/apache/dubbo-go/metadata/report"
"github.com/apache/dubbo-go/metadata/report/factory"
"github.com/apache/dubbo-go/remoting/etcdv3"
perrors "github.com/pkg/errors"
"strings"
"time"
)

const DEFAULT_ROOT = "dubbo"
Expand Down
16 changes: 11 additions & 5 deletions metadata/report/etcd/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,22 @@
package etcd

import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/metadata/identifier"
"github.com/coreos/etcd/embed"
"github.com/stretchr/testify/assert"
"net/url"
"strconv"
"testing"
)

import (
"github.com/coreos/etcd/embed"
"github.com/stretchr/testify/assert"
)

import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/metadata/identifier"
)

const defaultEtcdV3WorkDir = "/tmp/default-dubbo-go-registry.etcd"

func initEtcd(t *testing.T) *embed.Etcd {
Expand Down

0 comments on commit 1ccc120

Please sign in to comment.