🚚 Rename metadata for nexus

This commit is contained in:
LittleSheep 2024-12-14 12:44:04 +08:00
parent a8a2eace8a
commit 690e74e006

View File

@ -2,11 +2,12 @@ package gap
import ( import (
"fmt" "fmt"
"strings"
"git.solsynth.dev/hypernet/nexus/pkg/nex" "git.solsynth.dev/hypernet/nexus/pkg/nex"
"git.solsynth.dev/hypernet/nexus/pkg/proto" "git.solsynth.dev/hypernet/nexus/pkg/proto"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/samber/lo" "github.com/samber/lo"
"strings"
"github.com/spf13/viper" "github.com/spf13/viper"
) )
@ -25,7 +26,7 @@ func InitializeToNexus() error {
var err error var err error
Nx, err = nex.NewNexusConn(viper.GetString("nexus_addr"), &proto.ServiceInfo{ Nx, err = nex.NewNexusConn(viper.GetString("nexus_addr"), &proto.ServiceInfo{
Id: viper.GetString("id"), Id: viper.GetString("id"),
Type: "uc", Type: "re",
Label: "Reader", Label: "Reader",
GrpcAddr: grpcOutbound, GrpcAddr: grpcOutbound,
HttpAddr: lo.ToPtr("http://" + httpOutbound + "/api"), HttpAddr: lo.ToPtr("http://" + httpOutbound + "/api"),