refactor(actors): rename BootstrapActor to Bootstrapper

This commit is contained in:
hdbg
2026-02-16 20:59:49 +01:00
parent 9ec465706a
commit b05cdeec66
4 changed files with 26 additions and 61 deletions

View File

@@ -43,11 +43,11 @@ pub enum BootstrapError {
}
#[derive(Actor)]
pub struct BootstrapActor {
pub struct Bootstrapper {
token: Option<String>,
}
impl BootstrapActor {
impl Bootstrapper {
pub async fn new(db: &DatabasePool) -> Result<Self, BootstrapError> {
let mut conn = db.get().await?;
@@ -77,7 +77,7 @@ impl BootstrapActor {
}
#[messages]
impl BootstrapActor {
impl Bootstrapper {
#[message]
pub fn is_correct_token(&self, token: String) -> bool {
match &self.token {