(rate)
| 36 | return heartbeat_error |
| 37 | |
| 38 | def tick(rate): |
| 39 | try: |
| 40 | connection.heartbeat_check(rate) |
| 41 | except Exception as e: |
| 42 | # heartbeat_error is passed by reference can be updated |
| 43 | # no append here list should be fixed size=1 |
| 44 | heartbeat_error[0] = e |
| 45 | |
| 46 | timer.call_repeatedly(heartbeat / rate, tick, (rate,)) |
| 47 | return heartbeat_error |
nothing calls this directly
no test coverage detected