// use actix::prelude::*; use crate as actor; impl Handler for actor::RepoActor { type Result = (); #[tracing::instrument(name = "RepoActor::ReceiveRepoConfig", skip_all, fields(repo = %self.repo_details, branches = ?msg))] fn handle( &mut self, msg: actor::messages::ReceiveRepoConfig, ctx: &mut Self::Context, ) -> Self::Result { let repo_config = msg.unwrap(); self.repo_details.repo_config.replace(repo_config); actor::do_send( ctx.address(), actor::messages::ValidateRepo::new(self.message_token), &self.log, ); actor::do_send( ctx.address(), actor::messages::RegisterWebhook::new(), &self.log, ); } }