some clean up
Mainly adding some comments, and some function renaming
This commit is contained in:
@@ -92,7 +92,6 @@ func NewFailure(reason string) *Failure {
|
||||
}
|
||||
|
||||
func addPlayer(ws *websocket.Conn) {
|
||||
// route to appropriate game ...
|
||||
var gid GameID
|
||||
err := websocket.JSON.Receive(ws, &gid)
|
||||
if err != nil {
|
||||
@@ -184,7 +183,6 @@ func addPlayer(ws *websocket.Conn) {
|
||||
p.recv()
|
||||
log.Printf("game %s: player %v has been disconnected from this game\n", gid.Id, p.Robot.Id)
|
||||
case "spectator":
|
||||
//return nil, nil
|
||||
s := &Spectator{
|
||||
send: make(chan *Boardstate),
|
||||
ws: ws,
|
||||
|
||||
Reference in New Issue
Block a user