From ed2b831e5aaa65dfc40530f26511cea66611a042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sat, 1 Jul 2023 15:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E6=89=BE=E5=BD=93=E5=89=8DAPI?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E7=89=88=E6=9C=AC=E4=B8=AD=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=A7=92=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/rpc/services/service_api_node.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/rpc/services/service_api_node.go b/internal/rpc/services/service_api_node.go index 33ca4d34..92227564 100644 --- a/internal/rpc/services/service_api_node.go +++ b/internal/rpc/services/service_api_node.go @@ -240,7 +240,7 @@ func (this *APINodeService) FindEnabledAPINode(ctx context.Context, req *pb.Find // FindCurrentAPINodeVersion 获取当前API节点的版本 func (this *APINodeService) FindCurrentAPINodeVersion(ctx context.Context, req *pb.FindCurrentAPINodeVersionRequest) (*pb.FindCurrentAPINodeVersionResponse, error) { - _, _, _, err := rpcutils.ValidateRequest(ctx) + role, _, _, err := rpcutils.ValidateRequest(ctx) if err != nil { return nil, err } @@ -249,6 +249,7 @@ func (this *APINodeService) FindCurrentAPINodeVersion(ctx context.Context, req * Version: teaconst.Version, Os: runtime.GOOS, Arch: runtime.GOARCH, + Role: role, }, nil }