fix: remove extra StartRepo message

Closes kemitix/git-next#32
This commit is contained in:
Paul Campbell 2024-04-11 23:03:15 +01:00 committed by Paul Campbell
parent 7d3ebfb320
commit 8ed942a501
3 changed files with 2 additions and 5 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "git-next"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -158,7 +158,6 @@ pub async fn advance_main(
next: forge::Commit,
repo_details: config::RepoDetails,
repo_config: config::RepoConfig,
addr: Addr<RepoActor>,
) {
match reset(
&repo_config.branches().main(),
@ -168,7 +167,6 @@ pub async fn advance_main(
) {
Ok(_) => {
info!("Success");
addr.do_send(StartRepo);
}
Err(err) => {
warn!(?err, "Failed")

View file

@ -159,8 +159,7 @@ impl Handler<AdvanceMainTo> for RepoActor {
warn!("No config loaded");
return;
};
let addr = ctx.address();
branch::advance_main(msg.0, repo_details, repo_config, addr)
branch::advance_main(msg.0, repo_details, repo_config)
.into_actor(self)
.wait(ctx);
}