mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 14:11:21 +00:00
remove dead code
This commit is contained in:
parent
908fd11665
commit
65d40a2d08
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user