Skip to content

Commit

Permalink
refactor:remove providers: prefix when use polaris
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Mar 30, 2023
1 parent 5a76a5e commit 044d1ad
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
4 changes: 3 additions & 1 deletion common/constant/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

package constant

import "math"
import (
"math"
)

const (
Dubbo = "dubbo"
Expand Down
3 changes: 2 additions & 1 deletion protocol/dubbo3/dubbo3_invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ import (

import (
"github.com/dubbogo/gost/log/logger"
"github.com/dustin/go-humanize"

"github.com/dubbogo/grpc-go/metadata"

tripleConstant "github.com/dubbogo/triple/pkg/common/constant"
triConfig "github.com/dubbogo/triple/pkg/config"
"github.com/dubbogo/triple/pkg/triple"

"github.com/dustin/go-humanize"
)

import (
Expand Down
3 changes: 2 additions & 1 deletion protocol/dubbo3/dubbo3_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ import (

import (
"github.com/dubbogo/gost/log/logger"
"github.com/dustin/go-humanize"

"github.com/dubbogo/grpc-go"
"github.com/dubbogo/grpc-go/metadata"

tripleConstant "github.com/dubbogo/triple/pkg/common/constant"
triConfig "github.com/dubbogo/triple/pkg/config"
"github.com/dubbogo/triple/pkg/triple"

"github.com/dustin/go-humanize"
)

import (
Expand Down
1 change: 1 addition & 0 deletions protocol/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (

import (
"github.com/dubbogo/gost/log/logger"

"github.com/dustin/go-humanize"

"github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc"
Expand Down
3 changes: 2 additions & 1 deletion protocol/grpc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ package grpc
import (
"context"
"fmt"
"github.com/dustin/go-humanize"
"testing"
)

import (
"github.com/dustin/go-humanize"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions protocol/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (

import (
"github.com/dubbogo/gost/log/logger"

"github.com/dustin/go-humanize"

"github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc"
Expand Down
2 changes: 1 addition & 1 deletion registry/polaris/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (pr *polarisRegistry) UnRegister(url *common.URL) error {
request := createDeregisterParam(url, url.Interface())
request.Namespace = pr.namespace
if err := pr.provider.Deregister(request); err != nil {
return perrors.WithMessagef(err, "register(conf:%+v)", url)
return perrors.WithMessagef(err, "fail to deregister(conf:%+v)", url)
}
return nil
}
Expand Down
3 changes: 2 additions & 1 deletion tools/dubbogo-cli/cmd/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ import (
)

import (
"github.com/spf13/cobra"
"github.com/olekukonko/tablewriter"

"github.com/spf13/cobra"
)

import (
Expand Down

0 comments on commit 044d1ad

Please sign in to comment.