Error code standardization

This commit is contained in:
skiffer-git
2023-01-05 11:33:17 +08:00
parent 847860a0c7
commit 4147c68f6d
8 changed files with 208 additions and 237 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ func DelAllGroupMembersInfoFromCache(groupID string) error {
return db.DB.Rc.TagAsDeleted(groupAllMemberInfoCache + groupID)
}
func GetGroupInfoFromCache(groupID string) (*imdb.Group, error) {
func GetGroupInfoFromCache(ctx context.Context, groupID string) (*imdb.Group, error) {
getGroupInfo := func() (string, error) {
groupInfo, err := imdb.GetGroupInfoByGroupID(groupID)
if err != nil {