Skip to content

Commit

Permalink
Buffering channel
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-nguyen committed May 12, 2018
1 parent 9aaff95 commit a28b70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func messageEmitter(g *Game) {

func main() {
rand.Seed(time.Now().UTC().UnixNano())
MessageChannel = make(chan models.Message)
MessageChannel = make(chan models.Message, 50)

arena.MessageChannel = MessageChannel
game := Game{
Expand Down

0 comments on commit a28b70e

Please sign in to comment.