update documentation of service::users::Data::iter

This commit is contained in:
avdb13 2025-02-13 21:23:55 +00:00 committed by mikoto
parent d1370f9834
commit 48ecf50973
3 changed files with 6 additions and 6 deletions

View file

@ -18,7 +18,7 @@ pub(crate) trait Data: Send + Sync {
/// Check if account is deactivated
fn is_deactivated(&self, user_id: &UserId) -> Result<bool>;
/// Returns the number of users registered on this server.
/// Returns the number of local and remote users known by this server.
fn count(&self) -> Result<usize>;
/// Find out which user an access token belongs to.
@ -27,7 +27,7 @@ pub(crate) trait Data: Send + Sync {
token: &str,
) -> Result<Option<(OwnedUserId, String)>>;
/// Returns an iterator over all users on this homeserver.
/// Returns an iterator over all local and remote users on this homeserver.
fn iter<'a>(&'a self)
-> Box<dyn Iterator<Item = Result<OwnedUserId>> + 'a>;