From 2c5f497be2d6f6f175527ead3ebb7e988761c365 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 5 May 2024 07:39:39 +0100 Subject: [PATCH] feat(server): remove redundant call to register webhook --- src/server/actors/repo/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/server/actors/repo/mod.rs b/src/server/actors/repo/mod.rs index a7e391ec..e7efb338 100644 --- a/src/server/actors/repo/mod.rs +++ b/src/server/actors/repo/mod.rs @@ -182,10 +182,7 @@ impl Handler 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 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); } } }