This commit is contained in:
2026-07-10 16:32:07 +02:00
parent 46b8488b09
commit 12378c3649
7 changed files with 12 additions and 23 deletions

View File

@@ -41,7 +41,11 @@ pub struct NoopSocialCommand;
#[async_trait]
impl super::SocialCommand for NoopSocialCommand {
async fn follow(&self, _: &UserId, _: &crate::value_objects::FollowTarget) -> Result<(), DomainError> {
async fn follow(
&self,
_: &UserId,
_: &crate::value_objects::FollowTarget,
) -> Result<(), DomainError> {
Ok(())
}
async fn unfollow(&self, _: &UserId, _: &SocialIdentity) -> Result<(), DomainError> {

View File

@@ -61,7 +61,6 @@ pub trait SocialQuery: Send + Sync {
follower: &UserId,
target: &SocialIdentity,
) -> Result<bool, DomainError>;
}
#[async_trait]

View File

@@ -1105,5 +1105,4 @@ impl SocialQuery for InMemorySocialRepository {
*f == follower.value() && t == target && *state == FollowState::Accepted
}))
}
}