Revert "Force GC when each event is at the end of its path"
This reverts commit c5efc28c82
.
This commit is contained in:
parent
c5efc28c82
commit
df2fdc970b
|
@ -5,7 +5,6 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"git.sr.ht/~michalr/go-satel"
|
"git.sr.ht/~michalr/go-satel"
|
||||||
|
@ -26,7 +25,6 @@ type Sleeper interface {
|
||||||
func Consume(events <-chan GenericMessage) {
|
func Consume(events <-chan GenericMessage) {
|
||||||
go func() {
|
go func() {
|
||||||
for range events {
|
for range events {
|
||||||
runtime.GC()
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue