chore (backend-rs): add comment on NUMBER_OF_SYSTEM_ACTORS

This commit is contained in:
naskya 2024-07-11 02:35:44 +09:00
parent aef95fd6ec
commit ca6b840302
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -1,6 +1,9 @@
use crate::{database::db_conn, model::entity::user};
use sea_orm::prelude::*;
// TODO: When `std::mem::variant_count` is stabilized, use
// it to count system actors instead of hard coding the magic number
// @instance.actor and @relay.actor are not real users
const NUMBER_OF_SYSTEM_ACTORS: u64 = 2;