diff --git a/sender_worker.go b/sender_worker.go index 477db87..5e156b4 100644 --- a/sender_worker.go +++ b/sender_worker.go @@ -5,6 +5,7 @@ import ( "log" "net/http" "os" + "runtime" "sync" "git.sr.ht/~michalr/go-satel" @@ -25,6 +26,7 @@ type Sleeper interface { func Consume(events <-chan GenericMessage) { go func() { for range events { + runtime.GC() } }() }