mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 11:36:44 +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) {
|
func (c *msgCache) getSeqs(ctx context.Context, items []string, getkey func(s string) string) (m map[string]int64, err error) {
|
||||||
pipe := c.rdb.Pipeline()
|
pipe := c.rdb.Pipeline()
|
||||||
for _, v := range items {
|
for _, v := range items {
|
||||||
log.ZDebug(ctx, "getSeqs", "getkey", getkey(v))
|
|
||||||
if err := pipe.Get(ctx, getkey(v)).Err(); err != nil && err != redis.Nil {
|
if err := pipe.Get(ctx, getkey(v)).Err(); err != nil && err != redis.Nil {
|
||||||
return nil, errs.Wrap(err)
|
return nil, errs.Wrap(err)
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ package friend
|
|||||||
import "github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
|
import "github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
|
||||||
|
|
||||||
func (m *ApplyToAddFriendReq) Check() error {
|
func (m *ApplyToAddFriendReq) Check() error {
|
||||||
*m = ApplyToAddFriendReq{}
|
|
||||||
if m.GetToUserID() == "" {
|
if m.GetToUserID() == "" {
|
||||||
return errs.ErrArgs.Wrap("get toUserID is empty")
|
return errs.ErrArgs.Wrap("get toUserID is empty")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user