From 5d95b333f189151f3c90e19db742926e55bbd19c Mon Sep 17 00:00:00 2001 From: wei cheng Date: Tue, 21 May 2019 13:37:00 +0800 Subject: [PATCH] remove pb ecode --- pkg/{ecode => net/rpc/warden/internal}/pb/ecode.go | 0 pkg/{ecode => net/rpc/warden/internal}/pb/ecode.pb.go | 0 pkg/{ecode => net/rpc/warden/internal}/pb/ecode.proto | 0 pkg/net/rpc/warden/internal/status/status.go | 2 +- pkg/net/rpc/warden/internal/status/status_test.go | 2 +- 5 files changed, 2 insertions(+), 2 deletions(-) rename pkg/{ecode => net/rpc/warden/internal}/pb/ecode.go (100%) rename pkg/{ecode => net/rpc/warden/internal}/pb/ecode.pb.go (100%) rename pkg/{ecode => net/rpc/warden/internal}/pb/ecode.proto (100%) diff --git a/pkg/ecode/pb/ecode.go b/pkg/net/rpc/warden/internal/pb/ecode.go similarity index 100% rename from pkg/ecode/pb/ecode.go rename to pkg/net/rpc/warden/internal/pb/ecode.go diff --git a/pkg/ecode/pb/ecode.pb.go b/pkg/net/rpc/warden/internal/pb/ecode.pb.go similarity index 100% rename from pkg/ecode/pb/ecode.pb.go rename to pkg/net/rpc/warden/internal/pb/ecode.pb.go diff --git a/pkg/ecode/pb/ecode.proto b/pkg/net/rpc/warden/internal/pb/ecode.proto similarity index 100% rename from pkg/ecode/pb/ecode.proto rename to pkg/net/rpc/warden/internal/pb/ecode.proto diff --git a/pkg/net/rpc/warden/internal/status/status.go b/pkg/net/rpc/warden/internal/status/status.go index 7696a13f7..a54eaa437 100644 --- a/pkg/net/rpc/warden/internal/status/status.go +++ b/pkg/net/rpc/warden/internal/status/status.go @@ -11,7 +11,7 @@ import ( "google.golang.org/grpc/status" "github.com/bilibili/kratos/pkg/ecode" - "github.com/bilibili/kratos/pkg/ecode/pb" + "github.com/bilibili/kratos/pkg/net/rpc/warden/internal/pb" ) // togRPCCode convert ecode.Codo to gRPC code diff --git a/pkg/net/rpc/warden/internal/status/status_test.go b/pkg/net/rpc/warden/internal/status/status_test.go index 48da6c42f..43013e9b4 100644 --- a/pkg/net/rpc/warden/internal/status/status_test.go +++ b/pkg/net/rpc/warden/internal/status/status_test.go @@ -15,7 +15,7 @@ import ( "google.golang.org/grpc/status" "github.com/bilibili/kratos/pkg/ecode" - "github.com/bilibili/kratos/pkg/ecode/pb" + "github.com/bilibili/kratos/pkg/net/rpc/warden/internal/pb" ) func TestCodeConvert(t *testing.T) {