feat(server): remove redundant call to register webhook

This commit is contained in:
Paul Campbell 2024-05-05 07:39:39 +01:00
parent 709fde18d1
commit 2c5f497be2

View file

@ -182,10 +182,7 @@ impl Handler<StartMonitoring> for RepoActor {
let dev_ahead_of_next = msg.next != msg.dev;
info!(next_ahead_of_main, dev_ahead_of_next, "StartMonitoring");
let repo_details = self.details.clone();
let webhook = self.webhook.clone();
let addr = ctx.address();
let net = self.net.clone();
let forge = self.forge.clone();
if next_ahead_of_main {
@ -198,11 +195,6 @@ impl Handler<StartMonitoring> for RepoActor {
.in_current_span()
.into_actor(self)
.wait(ctx);
} else if self.webhook_id.is_none() {
webhook::register(repo_details, webhook, addr, net)
.in_current_span()
.into_actor(self)
.wait(ctx);
}
}
}