mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
rpc
This commit is contained in:
parent
cad7b76d97
commit
6b6c6cabaa
1
pkg/common/db/cache/msg.go
vendored
1
pkg/common/db/cache/msg.go
vendored
@ -123,7 +123,6 @@ func (c *msgCache) getSeq(ctx context.Context, conversationID string, getkey fun
|
||||
func (c *msgCache) getSeqs(ctx context.Context, items []string, getkey func(s string) string) (m map[string]int64, err error) {
|
||||
pipe := c.rdb.Pipeline()
|
||||
for _, v := range items {
|
||||
log.ZDebug(ctx, "getSeqs", "getkey", getkey(v))
|
||||
if err := pipe.Get(ctx, getkey(v)).Err(); err != nil && err != redis.Nil {
|
||||
return nil, errs.Wrap(err)
|
||||
}
|
||||
|
@ -3,7 +3,6 @@ package friend
|
||||
import "github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
|
||||
|
||||
func (m *ApplyToAddFriendReq) Check() error {
|
||||
*m = ApplyToAddFriendReq{}
|
||||
if m.GetToUserID() == "" {
|
||||
return errs.ErrArgs.Wrap("get toUserID is empty")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user