Skip to content

Instantly share code, notes, and snippets.

@debugger22
Last active February 12, 2022 12:38
Show Gist options
  • Save debugger22/46c8e79d8b8c5cca49488398257a8a8b to your computer and use it in GitHub Desktop.
Save debugger22/46c8e79d8b8c5cca49488398257a8a8b to your computer and use it in GitHub Desktop.
func onUserChannelMessage(r <-chan *redis.Message, w chan string) {
go func() {
for m := range r {
w <- m.Payload
}
}()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment