Skip to content

Commit a1a27dc

Browse files
committed
add a todo
1 parent cec53df commit a1a27dc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

veno-core/src/app.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ impl AppState {
3535
.filter(|artifact| notifier.artifact_ids.contains(&artifact.id))
3636
.collect::<Vec<&Artifact>>();
3737

38+
// TODO this is currently checking artifacts multiple times if multiple notifiers reference the same artifact.
39+
// It would be better to check all artifacts in the beginning and then match on the checked_artifacts.
3840
let checked_artifacts = Self::check_artifacts(matched_artifacts).await;
3941

4042
let notification = generate_notification(&checked_artifacts);

veno-core/src/notifier/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub enum Sink {
3131
Webhook(WebhookSink),
3232
}
3333

34+
// TODO this could be either fire and forget and log errors or get a result and make a response but then use a join_all
3435
impl Sink {
3536
pub async fn send(&self, notification: &str) {
3637
match self {

0 commit comments

Comments
 (0)