Browse Source

Removed debug and gofmt.

pull/3/head
Simon Eisenmann 12 years ago
parent
commit
78956b15a7
  1. 5
      src/app/spreed-speakfreely-server/connection.go
  2. 2
      src/app/spreed-speakfreely-server/hub.go

5
src/app/spreed-speakfreely-server/connection.go

@ -143,7 +143,6 @@ func (c *Connection) readPump() { @@ -143,7 +143,6 @@ func (c *Connection) readPump() {
c.ws.SetReadLimit(maxMessageSize)
c.ws.SetReadDeadline(time.Now().Add(pongWait))
c.ws.SetPongHandler(func(string) error {
log.Println("Received pong", c.Idx)
c.ws.SetReadDeadline(time.Now().Add(pongWait))
return nil
})
@ -270,10 +269,6 @@ func (c *Connection) writePump() { @@ -270,10 +269,6 @@ func (c *Connection) writePump() {
// Write ping message.
func (c *Connection) ping() error {
log.Println("Sending ping", c.Idx)
defer func() {
log.Println("Sent ping", c.Idx)
}()
return c.write(websocket.PingMessage, []byte{})
}

2
src/app/spreed-speakfreely-server/hub.go

@ -112,7 +112,7 @@ func (h *Hub) Stat(details bool) *HubStat { @@ -112,7 +112,7 @@ func (h *Hub) Stat(details bool) *HubStat {
stat.UsersById = users
connections := make(map[string]string)
for id, connection := range h.connectionTable {
connections[fmt.Sprintf("%d", connection.Idx)]=id
connections[fmt.Sprintf("%d", connection.Idx)] = id
}
stat.ConnectionsByIdx = connections
}

Loading…
Cancel
Save