Browse Source

remove dead code

pull/130/head
Jae Kwon 9 years ago
parent
commit
65d40a2d08
1 changed files with 0 additions and 17 deletions
  1. +0
    -17
      rpc/test/ws_helpers.go

+ 0
- 17
rpc/test/ws_helpers.go View File

@ -65,23 +65,6 @@ func waitForEvent(t *testing.T, con *websocket.Conn, eventid string, dieOnTimeou
quitCh := make(chan struct{})
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
go func() {
for {


Loading…
Cancel
Save