mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 02:58:26 +08:00
err log
This commit is contained in:
parent
06a75a0a0e
commit
27dd574c4d
@ -382,9 +382,12 @@ func GetJoinedSuperGroupListFromCache(userID string) ([]string, error) {
|
|||||||
return string(bytes), utils.Wrap(err, "")
|
return string(bytes), utils.Wrap(err, "")
|
||||||
}
|
}
|
||||||
joinedSuperGroupListStr, err := db.DB.Rc.Fetch(joinedSuperGroupListCache+userID, time.Second*30*60, getJoinedSuperGroupIDList)
|
joinedSuperGroupListStr, err := db.DB.Rc.Fetch(joinedSuperGroupListCache+userID, time.Second*30*60, getJoinedSuperGroupIDList)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
var joinedSuperGroupList []string
|
var joinedSuperGroupList []string
|
||||||
err = json.Unmarshal([]byte(joinedSuperGroupListStr), &joinedSuperGroupList)
|
err = json.Unmarshal([]byte(joinedSuperGroupListStr), &joinedSuperGroupList)
|
||||||
return joinedSuperGroupList, err
|
return joinedSuperGroupList, utils.Wrap(err, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
func DelJoinedSuperGroupIDListFromCache(userID string) error {
|
func DelJoinedSuperGroupIDListFromCache(userID string) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user