This commit is contained in:
wangchuxiao
2023-03-13 13:21:55 +08:00
parent 4792ab7489
commit 6187b15a88
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -9,8 +9,6 @@ import (
"context"
"fmt"
"github.com/OpenIMSDK/openKeeper"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"os"
"strconv"
@@ -36,7 +34,7 @@ func run(port int) error {
return err
}
log.NewPrivateLog(constant.LogFileName)
zk.AddOption(mw.GrpcClient(), grpc.WithTransportCredentials(insecure.NewCredentials()))
zk.AddOption(mw.GrpcClient())
router := api.NewGinRouter(zk)
address := constant.LocalHost + ":" + strconv.Itoa(port)
if config.Config.Api.ListenIP != "" {