remove dead code

This commit is contained in:
Jae Kwon 2015-08-04 19:14:17 -07:00
parent 908fd11665
commit 65d40a2d08

View File

@ -65,23 +65,6 @@ func waitForEvent(t *testing.T, con *websocket.Conn, eventid string, dieOnTimeou
quitCh := make(chan struct{}) quitCh := make(chan struct{})
defer close(quitCh) defer close(quitCh)
/*
// TODO delete: we moved pinging to the server.
// Write pings repeatedly
go func() {
pingTicker := time.NewTicker((time.Second * rpcserver.WSReadTimeoutSeconds) / 2)
for {
select {
case <-quitCh:
pingTicker.Stop()
return
case <-pingTicker.C:
con.WriteControl(websocket.PingMessage, []byte("whatevs"), time.Now().Add(time.Second))
}
}
}()
*/
// Read message // Read message
go func() { go func() {
for { for {