Skip to content

Commit

Permalink
fix: import del cache
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Aug 8, 2024
1 parent 56e6da1 commit babd483
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/common/storage/controller/friend.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func (f *friendDatabase) BecomeFriends(ctx context.Context, ownerUserID string,
if err != nil {
return err
}
cache = cache.DelFriendIDs(ownerUserID).DelMaxFriendVersion(ownerUserID)
if len(newMyFriendIDs) > 0 {
cache = cache.DelFriendIDs(newMyFriendIDs...)
cache = cache.DelFriends(ownerUserID, newMyFriendIDs).DelMaxFriendVersion(newMyFriendIDs...)
Expand Down

0 comments on commit babd483

Please sign in to comment.