This commit is contained in:
hdt3213
2021-05-02 19:00:44 +08:00
parent 9f3ac88b36
commit eeebbbcccf
4 changed files with 3 additions and 2 deletions

View File

@@ -134,6 +134,7 @@ func (client *Client) doHeartbeat() {
request := &Request{
args: [][]byte{[]byte("PING")},
heartbeat: true,
waiting: &wait.Wait{},
}
request.waiting.Add(1)
client.working.Add(1)

View File

@@ -60,6 +60,7 @@ func TestClient(t *testing.T) {
}
}
client.doHeartbeat() // random do heartbeat
result = client.Send([][]byte{
[]byte("GET"),
[]byte("a"),