aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-07-07 22:04:59 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-07-07 22:04:59 +0100
commit7f42ddd37491abb590d3c73d21fe3ec7b8f29693 (patch)
tree5db63376171af2e321bacd05ab44ac4d63d3b0f9
parentd984c3d289c97e450c65768e1db5cda52e37676e (diff)
run actions in goroutines
-rw-r--r--cmd/dispatch/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/dispatch/main.go b/cmd/dispatch/main.go
index c33b7c1..bd664ba 100644
--- a/cmd/dispatch/main.go
+++ b/cmd/dispatch/main.go
@@ -85,7 +85,7 @@ func postTrigger(config *config.Config) http.HandlerFunc {
if matchTriggers(rule.Triggers, r) {
found = true
for _, action := range rule.Actions {
- runAction(ctx, action)
+ go runAction(ctx, action)
}
}
}