File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ impl AppState {
35
35
. filter ( |artifact| notifier. artifact_ids . contains ( & artifact. id ) )
36
36
. collect :: < Vec < & Artifact > > ( ) ;
37
37
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.
38
40
let checked_artifacts = Self :: check_artifacts ( matched_artifacts) . await ;
39
41
40
42
let notification = generate_notification ( & checked_artifacts) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ pub enum Sink {
31
31
Webhook ( WebhookSink ) ,
32
32
}
33
33
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
34
35
impl Sink {
35
36
pub async fn send ( & self , notification : & str ) {
36
37
match self {
You can’t perform that action at this time.
0 commit comments