go fmt
This commit is contained in:
@@ -15,8 +15,8 @@ type game struct {
|
||||
id chan int
|
||||
turn int
|
||||
spectators map[*Spectator]bool
|
||||
sregister chan *Spectator
|
||||
sunregister chan *Spectator
|
||||
sregister chan *Spectator
|
||||
sunregister chan *Spectator
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
|
||||
@@ -113,7 +113,7 @@ func addPlayer(ws *websocket.Conn) {
|
||||
send: make(chan *boardstate),
|
||||
ws: ws,
|
||||
}
|
||||
p.reset()
|
||||
p.reset()
|
||||
g.register <- p
|
||||
defer func() {
|
||||
g.unregister <- p
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ import (
|
||||
)
|
||||
|
||||
type Spectator struct {
|
||||
ws *websocket.Conn
|
||||
send chan *boardstate
|
||||
ws *websocket.Conn
|
||||
send chan *boardstate
|
||||
}
|
||||
|
||||
func (s *Spectator) sender() {
|
||||
|
||||
Reference in New Issue
Block a user