simplify
This commit is contained in:
1 parent
9cd652ef0b
commit
fecbf220cc
1 file changed
+3
-4
@@ -172,16 +172,15 @@ func (conn *LocalConnection) queryLoop(queryChan <-chan *ConnectionInteraction,
|
|||||||
conn.forwardHeartbeatFrame() // avoid initial wait
|
conn.forwardHeartbeatFrame() // avoid initial wait
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var heartbeat, fetchAll, fragTest <-chan time.Time
|
|
||||||
terminate := false
|
terminate := false
|
||||||
for !terminate {
|
for !terminate {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
conn.log("error:", err)
|
conn.log("error:", err)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
heartbeat = tickerChan(conn.heartbeat)
|
heartbeat := tickerChan(conn.heartbeat)
|
||||||
fetchAll = tickerChan(conn.fetchAll)
|
fetchAll := tickerChan(conn.fetchAll)
|
||||||
fragTest = tickerChan(conn.fragTest)
|
fragTest := tickerChan(conn.fragTest)
|
||||||
select {
|
select {
|
||||||
case query, ok := <-queryChan:
|
case query, ok := <-queryChan:
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
Reference in new issue
Block a user