Skip to content

Instantly share code, notes, and snippets.

@scottferg
Last active December 23, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottferg/6626558 to your computer and use it in GitHub Desktop.
Save scottferg/6626558 to your computer and use it in GitHub Desktop.
submission := func() {
label:
for {
switch message := psc.Receive().(type) {
case redis.Message:
return db.Loads(message.Data)
case error:
log.Println(colors.Red("Failed to pubsub on trading session! %e", message.Error))
break label
}
}
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment