Last active
December 23, 2015 11:09
-
-
Save scottferg/6626558 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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