summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/lru.go2
-rw-r--r--utils/lru_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/lru.go b/utils/lru.go
index f5f7959d8..41ba72d71 100644
--- a/utils/lru.go
+++ b/utils/lru.go
@@ -68,7 +68,7 @@ func (c *Cache) Add(key, value interface{}) bool {
return c.AddWithExpiresInSecs(key, value, 0)
}
-// Add adds a value to the cache. Returns true if an eviction occured.
+// Add adds a value to the cache. Returns true if an eviction occurred.
func (c *Cache) AddWithExpiresInSecs(key, value interface{}, expireAtSecs int64) bool {
c.lock.Lock()
defer c.lock.Unlock()
diff --git a/utils/lru_test.go b/utils/lru_test.go
index 3255f5c1a..ab7d0e50a 100644
--- a/utils/lru_test.go
+++ b/utils/lru_test.go
@@ -73,7 +73,7 @@ func TestLRU(t *testing.T) {
}
}
-// test that Add return true/false if an eviction occured
+// test that Add return true/false if an eviction occurred
func TestLRUAdd(t *testing.T) {
evictCounter := 0
onEvicted := func(k interface{}, v interface{}) {