Use Kafka plugin based consumer implementation in example

This commit is contained in:
2015-10-17 03:42:27 +03:00
parent 87b8e851cc
commit dd2a6fcca2
3 changed files with 139 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ type NumberPrinter struct {
// Startup sets up panic handler and starts enqueuing number printing jobs.
func (n *NumberPrinter) Startup() {
n.HandlePanics(func() {
log.Println("Oh, crap!")
log.Println("Oh, crap! There was a panic, take a look:")
})
n.SystemProcess(n.enqueue)