Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
[master] Fix spelling errors (#569)
Browse files Browse the repository at this point in the history
Produced via:
  `github.com/client9/misspell`
/assign mikehelmick
/cc mikehelmick
  • Loading branch information
mattmoor authored Jun 8, 2020
1 parent 92f146e commit decd6fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (c *Cache) WriteThruLookup(name string, primaryLookup Func) (interface{}, e
}
// Either a miss, or hit w/ expired value.

// Value does indeed need to be refreshed. Used the provided fucntion.
// Value does indeed need to be refreshed. Used the provided function.
newData, err := primaryLookup()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion internal/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestCache(t *testing.T) {
if got, hit := cache.Lookup("foo"); got != nil || hit {
t.Fatalf("expected key to expire, but still available")
}
// potential race, yeild CPU so that the purge go routine has a chance to run.
// potential race, yield CPU so that the purge go routine has a chance to run.
time.Sleep(duration)
checkSize(t, cache, 0)
}
Expand Down

0 comments on commit decd6fd

Please sign in to comment.