Skip to content

Commit

Permalink
heartbeat routine needs to be test aware, prevent panics
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Oct 25, 2023
1 parent c7b1f06 commit c61bcdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/utils/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func HeartbeatRoutine(
go func() {
for {
msg := fmt.Sprintf("heartbeat #%d: %s", counter, message())
activity.RecordHeartbeat(ctx, msg)
RecordHeartbeatWithRecover(ctx, msg)
counter += 1
to := time.After(interval)
select {
Expand Down

0 comments on commit c61bcdd

Please sign in to comment.