fix version 1
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
|
||||
"bsm/full/module/base/sender/internal/config"
|
||||
"bsm/full/module/base/sender/internal/impl"
|
||||
"bsm/full/module/base/sender/internal/server"
|
||||
pb "bsm/full/module/base/sender/pb"
|
||||
gwRuntime "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
@@ -24,6 +25,8 @@ func Expose(options ExposeOptions) error {
|
||||
if options.Config != nil {
|
||||
config.Spec = *options.Config
|
||||
}
|
||||
// 聚合部署下配置在此注入,需重建服务商客户端,否则 Provider 恒为 nil
|
||||
impl.InitProvider()
|
||||
server.New(options.GRPC)
|
||||
|
||||
ctx := context.Background()
|
||||
|
||||
Reference in New Issue
Block a user