From 69b82b9198e92ed46ac5fe086b2c99a2ac1e4b0f Mon Sep 17 00:00:00 2001 From: GalvinGao Date: Mon, 30 May 2022 22:09:56 +0800 Subject: [PATCH] style: rename --- internal/workers/calcwkr/calcwkr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/workers/calcwkr/calcwkr.go b/internal/workers/calcwkr/calcwkr.go index 0556e70c..0ba836cf 100644 --- a/internal/workers/calcwkr/calcwkr.go +++ b/internal/workers/calcwkr/calcwkr.go @@ -135,14 +135,14 @@ func (w *Worker) do(sourceCategories []string) { log.Info().Int("count", w.count).Msg("worker batch finished") go func() { - w.NotifySucceeded() + w.heartbeat() }() }() } }() } -func (w *Worker) NotifySucceeded() { +func (w *Worker) heartbeat() { if w.heartbeatURL == "" { // we simply ignore if there's no heartbeat URL return