Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Norwin Roosen <[email protected]>
  • Loading branch information
noerw committed Aug 7, 2024
1 parent 92fb59d commit b9628bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prober/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit b9628bc

Please sign in to comment.