feat grpc客户端整理

This commit is contained in:
2026-01-14 14:44:49 +08:00
parent 29d5444082
commit 9518f3da5f
6 changed files with 8 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
package service
package grpc_client
import (
"git.hlsq.asia/mmorpg/service-common/discover"

View File

@@ -1,4 +1,4 @@
package service
package grpc_client
import (
"git.hlsq.asia/mmorpg/service-common/discover"

View File

@@ -1,4 +1,4 @@
package service
package grpc_client
import (
"git.hlsq.asia/mmorpg/service-common/discover"

View File

@@ -1,4 +1,4 @@
package service
package grpc_client
import (
"git.hlsq.asia/mmorpg/service-common/discover"

View File

@@ -1,9 +1,8 @@
package stream_client
package grpc_client
import (
"context"
"git.hlsq.asia/mmorpg/service-common/log"
"git.hlsq.asia/mmorpg/service-common/net/grpc/service"
"google.golang.org/grpc"
"google.golang.org/protobuf/proto"
"strconv"
@@ -30,7 +29,7 @@ func findGatewayBySID(sid string, fun GatewayFun) (*gatewayStream, error) {
return v.(*gatewayStream), nil
}
client, err := service.GatewayNewClient(sid)
client, err := GatewayNewClient(sid)
if err != nil {
log.Errorf("findGatewayBySID cannot find client: %v", err)
return nil, err

View File

@@ -1,9 +1,8 @@
package stream_client
package grpc_client
import (
"context"
"git.hlsq.asia/mmorpg/service-common/log"
"git.hlsq.asia/mmorpg/service-common/net/grpc/service"
"google.golang.org/grpc"
"google.golang.org/protobuf/proto"
"strconv"
@@ -30,7 +29,7 @@ func findSceneBySID(sid string, fun SceneFun) (*sceneStream, error) {
return v.(*sceneStream), nil
}
client, err := service.SceneNewClient(sid)
client, err := SceneNewClient(sid)
if err != nil {
log.Errorf("findSceneBySID cannot find client: %v", err)
return nil, err