From 1eca282beea969dcb2a199a15fe56c49ae02e87f Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 9 Aug 2016 16:12:52 -0700 Subject: [PATCH] Updates hashicorp/golang-lru. --- .../hashicorp/golang-lru/.gitignore | 23 ------------------- vendor/github.com/hashicorp/golang-lru/2q.go | 2 +- vendor/github.com/hashicorp/golang-lru/lru.go | 2 +- vendor/vendor.json | 8 +++++-- 4 files changed, 8 insertions(+), 27 deletions(-) delete mode 100644 vendor/github.com/hashicorp/golang-lru/.gitignore diff --git a/vendor/github.com/hashicorp/golang-lru/.gitignore b/vendor/github.com/hashicorp/golang-lru/.gitignore deleted file mode 100644 index 836562412f..0000000000 --- a/vendor/github.com/hashicorp/golang-lru/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test diff --git a/vendor/github.com/hashicorp/golang-lru/2q.go b/vendor/github.com/hashicorp/golang-lru/2q.go index 1529a0dc80..337d963296 100644 --- a/vendor/github.com/hashicorp/golang-lru/2q.go +++ b/vendor/github.com/hashicorp/golang-lru/2q.go @@ -20,7 +20,7 @@ const ( // TwoQueueCache is a thread-safe fixed size 2Q cache. // 2Q is an enhancement over the standard LRU cache // in that it tracks both frequently and recently used -// entries seperately. This avoids a burst in access to new +// entries separately. This avoids a burst in access to new // entries from evicting frequently used entries. It adds some // additional tracking overhead to the standard LRU cache, and is // computationally about 2x the cost, and adds some metadata over diff --git a/vendor/github.com/hashicorp/golang-lru/lru.go b/vendor/github.com/hashicorp/golang-lru/lru.go index 8964b37be5..a6285f989e 100644 --- a/vendor/github.com/hashicorp/golang-lru/lru.go +++ b/vendor/github.com/hashicorp/golang-lru/lru.go @@ -40,7 +40,7 @@ func (c *Cache) Purge() { c.lock.Unlock() } -// 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) Add(key, value interface{}) bool { c.lock.Lock() defer c.lock.Unlock() diff --git a/vendor/vendor.json b/vendor/vendor.json index d4a3f99b90..6d95a538ef 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -184,12 +184,16 @@ "revision": "36289988d83ca270bc07c234c36f364b0dd9c9a7" }, { + "checksumSHA1": "d9PxF1XQGLMJZRct2R8qVM/eYlE=", "path": "github.com/hashicorp/golang-lru", - "revision": "5c7531c003d8bf158b0fe5063649a2f41a822146" + "revision": "a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4", + "revisionTime": "2016-02-07T21:47:19Z" }, { + "checksumSHA1": "2nOpYjx8Sn57bqlZq17yM4YJuM4=", "path": "github.com/hashicorp/golang-lru/simplelru", - "revision": "5c7531c003d8bf158b0fe5063649a2f41a822146" + "revision": "a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4", + "revisionTime": "2016-02-07T21:47:19Z" }, { "path": "github.com/hashicorp/hcl",