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] [package]
name = "git-next" name = "git-next"
version = "0.1.1" version = "0.1.2"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # 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, next: forge::Commit,
repo_details: config::RepoDetails, repo_details: config::RepoDetails,
repo_config: config::RepoConfig, repo_config: config::RepoConfig,
addr: Addr<RepoActor>,
) { ) {
match reset( match reset(
&repo_config.branches().main(), &repo_config.branches().main(),
@ -168,7 +167,6 @@ pub async fn advance_main(
) { ) {
Ok(_) => { Ok(_) => {
info!("Success"); info!("Success");
addr.do_send(StartRepo);
} }
Err(err) => { Err(err) => {
warn!(?err, "Failed") warn!(?err, "Failed")

View file

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