mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-04 03:13:15 +08:00
fix: batchGetMaxSeq
This commit is contained in:
parent
c9c961e927
commit
130543301d
@ -78,12 +78,14 @@ func (s *seqConversationCacheRedis) batchGetMaxSeq(ctx context.Context, keys []s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(notFoundKey) > 0 {
|
if len(notFoundKey) > 0 {
|
||||||
conversationID := keyConversationID[notFoundKey[0]]
|
for _, key := range notFoundKey {
|
||||||
seq, err := s.GetMaxSeq(ctx, conversationID)
|
conversationID := keyConversationID[key]
|
||||||
if err != nil {
|
seq, err := s.GetMaxSeq(ctx, conversationID)
|
||||||
return err
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
seqs[conversationID] = seq
|
||||||
}
|
}
|
||||||
seqs[conversationID] = seq
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user