查找当前API节点版本中增加角色

This commit is contained in:
GoEdgeLab
2023-07-01 15:09:54 +08:00
parent 03ecc5be96
commit fadd61a260

View File

@@ -240,7 +240,7 @@ func (this *APINodeService) FindEnabledAPINode(ctx context.Context, req *pb.Find
// FindCurrentAPINodeVersion 获取当前API节点的版本 // FindCurrentAPINodeVersion 获取当前API节点的版本
func (this *APINodeService) FindCurrentAPINodeVersion(ctx context.Context, req *pb.FindCurrentAPINodeVersionRequest) (*pb.FindCurrentAPINodeVersionResponse, error) { 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 { if err != nil {
return nil, err return nil, err
} }
@@ -249,6 +249,7 @@ func (this *APINodeService) FindCurrentAPINodeVersion(ctx context.Context, req *
Version: teaconst.Version, Version: teaconst.Version,
Os: runtime.GOOS, Os: runtime.GOOS,
Arch: runtime.GOARCH, Arch: runtime.GOARCH,
Role: role,
}, nil }, nil
} }