summaryrefslogtreecommitdiff
path: root/vendor/go.opencensus.io/trace/lrumap.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.opencensus.io/trace/lrumap.go')
-rw-r--r--vendor/go.opencensus.io/trace/lrumap.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/go.opencensus.io/trace/lrumap.go b/vendor/go.opencensus.io/trace/lrumap.go
index dc7a295c7..908c2497e 100644
--- a/vendor/go.opencensus.io/trace/lrumap.go
+++ b/vendor/go.opencensus.io/trace/lrumap.go
@@ -44,7 +44,7 @@ func (lm lruMap) len() int {
}
func (lm lruMap) keys() []interface{} {
- keys := []interface{}{}
+ keys := make([]interface{}, len(lm.cacheKeys))
for k := range lm.cacheKeys {
keys = append(keys, k)
}