actually these two lines can collapse to:

```go
heartbeat := time.NewTicker(client.HeartbeatInterval)
```

(we dont need to maintain a local variable, only a local *ticker*)