From 7f42ddd37491abb590d3c73d21fe3ec7b8f29693 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Tue, 7 Jul 2020 22:04:59 +0100 Subject: run actions in goroutines --- cmd/dispatch/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } } } -- cgit v1.2.3