From b9628bc52fc5ac81087bf322bdef14b95866cbe4 Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Wed, 7 Aug 2024 16:08:54 +0200 Subject: [PATCH] fix comment Signed-off-by: Norwin Roosen --- prober/history.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prober/history.go b/prober/history.go index 44d9c548..b7308a7f 100644 --- a/prober/history.go +++ b/prober/history.go @@ -78,7 +78,7 @@ func (rh *ResultHistory) List() []*Result { return append(rh.preservedFailedResults[:], rh.results...) } -// Get returns a given result by id. +// GetById returns a given result by id. func (rh *ResultHistory) GetById(id int64) *Result { rh.mu.Lock() defer rh.mu.Unlock() @@ -97,7 +97,7 @@ func (rh *ResultHistory) GetById(id int64) *Result { return nil } -// Get returns a given result by url, optionally filtered by a module name. +// GetByTarget returns a given result by url, optionally filtered by a module name. func (rh *ResultHistory) GetByTarget(target string, module string) *Result { rh.mu.Lock() defer rh.mu.Unlock()