* fix: performance issues with Kafka caused by encapsulating the MQ interface
* fix: admin token in standalone mode
* fix: full id version
* fix: resolve deadlock in cache eviction and improve GetBatch implementation
* refactor: replace LongConn with ClientConn interface and simplify message handling
* refactor: replace LongConn with ClientConn interface and simplify message handling
* fix: seq use $setOnInsert for min_seq in conversation update
* feat: add error code for handled friend requests and improve error handling in friend operations
returnfmt.Errorf("failed to retrieve friend request from %s to %s: %w",friendRequest.FromUserID,friendRequest.ToUserID,err)
return err
}
// Check if the friend request has already been handled.
iffr.HandleResult!=0{
returnfmt.Errorf("friend request from %s to %s has already been processed",friendRequest.FromUserID,friendRequest.ToUserID)
returnservererrs.ErrFriendRequestHandled.WrapMsg("friend request has already been processed","from",friendRequest.FromUserID,"to",friendRequest.ToUserID)
}
// Log the action of refusing the friend request for debugging and auditing purposes.