Skip to content

Commit

Permalink
chore: update tools pkg (#245)
Browse files Browse the repository at this point in the history
* fix: im api UserToken error non-responsive body

* fix: set rand seed

* fix: set rand seed

* update version

* fix: optimize error code

* fix: optimize error code

* fix: chat admin userID

* fix: chat admin userID

* fix: chat admin userID

* feat: add SearchFriend

* feat: add SearchFriend

* feat: add SearchFriend

* feat: add SearchFriend

* feat: add SearchFriend

* fix: admin char length

* fix: phone already register code

* feat: add api caller timeout

* feat: add api caller timeout

* feat: im admin token cache

* feat: im admin token cache

* feat: im admin token cache

* chore: update pkg github.com/openimsdk/tools

* chore: update pkg github.com/openimsdk/tools

* chore: update pkg github.com/openimsdk/tools
  • Loading branch information
withchao authored Oct 26, 2023
1 parent d3315ae commit 8835023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/common/chatrpcstart/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func Start(rpcPort int, rpcRegisterName string, prometheusPort int, rpcFn func(c
if err != nil {
return errs.Wrap(err)
}
defer zkClient.CloseZK()
defer zkClient.Close()
zkClient.AddOption(chatMw.AddUserType(), mw.GrpcClient(), grpc.WithTransportCredentials(insecure.NewCredentials()))
registerIP, err := network.GetRpcRegisterIP(config.Config.Rpc.RegisterIP)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/config/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func InitConfig(configFile string) error {
if err != nil {
return utils.Wrap(err, "conn zk error ")
}
defer zk.CloseZK()
defer zk.Close()
var openIMConfigData []byte
for i := 0; i < 100; i++ {
var err error
Expand Down

0 comments on commit 8835023

Please sign in to comment.