Skip to content

Commit

Permalink
fix: change pb name for build failed. (#564)
Browse files Browse the repository at this point in the history
* fix: remove duplicate character.

* fix: create RPC zookeeper node to prevent interface call blocking.
  • Loading branch information
FGadvancer authored Aug 2, 2024
1 parent 1009a0f commit a3b35dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions internal/rpc/admin/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ package admin
import (
"context"

"github.com/redis/go-redis/v9"

"github.com/openimsdk/chat/pkg/eerrs"
adminpb "github.com/openimsdk/chat/pkg/protocol/admin"
"github.com/openimsdk/tools/log"
"github.com/redis/go-redis/v9"
)

func (o *adminServer) CreateToken(ctx context.Context, req *admin.CreateTokenReq) (*admin.CreateTokenResp, error) {
func (o *adminServer) CreateToken(ctx context.Context, req *adminpb.CreateTokenReq) (*adminpb.CreateTokenResp, error) {
token, expire, err := o.Token.CreateToken(req.UserID, req.UserType)

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/mctx/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ package mctx

import (
"context"
"strconv"
"github.com/openimsdk/tools/utils/datautil"
"strconv"

constantpb "github.com/openimsdk/protocol/constant"
"github.com/openimsdk/tools/errs"
Expand Down

0 comments on commit a3b35dd

Please sign in to comment.