refactor: CloneRepo use actor::do_send to send LoadConfigFromRepo
Some checks failed
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Rust / build (push) Failing after 1m44s

This commit is contained in:
Paul Campbell 2024-06-29 20:04:26 +01:00
parent f038ab508b
commit efc0dfdb6f

View file

@ -22,7 +22,11 @@ impl Handler<actor::messages::CloneRepo> for actor::RepoActor {
if self.repo_details.repo_config.is_none() { if self.repo_details.repo_config.is_none() {
tracing::debug!("Handler: CloneRepo: Sending: LoadConfigFromRepo"); tracing::debug!("Handler: CloneRepo: Sending: LoadConfigFromRepo");
actor::logger(&self.log, "send: LoadConfigFromRepo"); actor::logger(&self.log, "send: LoadConfigFromRepo");
ctx.address().do_send(actor::messages::LoadConfigFromRepo); actor::do_send(
ctx.address(),
actor::messages::LoadConfigFromRepo,
&self.log,
);
} else { } else {
tracing::debug!("Handler: CloneRepo: Sending: ValidateRepo"); tracing::debug!("Handler: CloneRepo: Sending: ValidateRepo");
actor::logger(&self.log, "send: ValidateRepo"); actor::logger(&self.log, "send: ValidateRepo");