forked from kemitix/git-next
feat(server): remove redundant call to register webhook
This commit is contained in:
parent
709fde18d1
commit
2c5f497be2
1 changed files with 0 additions and 8 deletions
|
@ -182,10 +182,7 @@ impl Handler<StartMonitoring> for RepoActor {
|
||||||
let dev_ahead_of_next = msg.next != msg.dev;
|
let dev_ahead_of_next = msg.next != msg.dev;
|
||||||
info!(next_ahead_of_main, dev_ahead_of_next, "StartMonitoring");
|
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 addr = ctx.address();
|
||||||
let net = self.net.clone();
|
|
||||||
let forge = self.forge.clone();
|
let forge = self.forge.clone();
|
||||||
|
|
||||||
if next_ahead_of_main {
|
if next_ahead_of_main {
|
||||||
|
@ -198,11 +195,6 @@ impl Handler<StartMonitoring> for RepoActor {
|
||||||
.in_current_span()
|
.in_current_span()
|
||||||
.into_actor(self)
|
.into_actor(self)
|
||||||
.wait(ctx);
|
.wait(ctx);
|
||||||
} else if self.webhook_id.is_none() {
|
|
||||||
webhook::register(repo_details, webhook, addr, net)
|
|
||||||
.in_current_span()
|
|
||||||
.into_actor(self)
|
|
||||||
.wait(ctx);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue