show what to replace

This commit is contained in:
Florent Peterschmitt 2019-10-27 13:29:22 +01:00
parent adfd010a93
commit 2515bd3339

View file

@ -78,10 +78,11 @@ import (
func main() {
events := make(chan []string, 1)
// simulating a high incoming message load
event := []string{"some_text", "some_id"}
tryCrash := func() {
for {
events <- []string{"some_text", "some_id"}
// replace "event" with whatever is giving you events: pubsub, amqp messages…
events <- event
}
}