cleanup: remove the repeated import (#2393)

pull/2408/head
180909 2 years ago committed by GitHub
parent 4d95050747
commit 2936b5ba80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      contrib/registry/servicecomb/registry.go

@ -7,7 +7,6 @@ import (
"time"
"github.com/go-chassis/cari/discovery"
pb "github.com/go-chassis/cari/discovery"
"github.com/go-chassis/cari/pkg/errsvc"
"github.com/go-chassis/sc-client"
@ -114,7 +113,7 @@ func (r *Registry) Register(_ context.Context, svcIns *registry.ServiceInstance)
return parseErr
}
// 若错误码显示服务未注册,直接返回
if svcErr.Code != pb.ErrServiceAlreadyExists {
if svcErr.Code != discovery.ErrServiceAlreadyExists {
return err
}
sid, err = r.cli.GetMicroServiceID(appID, ms.ServiceName, ms.Version, ms.Environment)

Loading…
Cancel
Save