Last active
February 12, 2022 12:38
-
-
Save debugger22/46c8e79d8b8c5cca49488398257a8a8b 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
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