From 7c1e7f5829f0aef6c8d26dcdc76871584e9ab62f Mon Sep 17 00:00:00 2001 From: Patrick Mylund Nielsen Date: Mon, 30 Nov 2015 16:04:57 -0500 Subject: [PATCH] go fmt --- cache_test.go | 10 +++++----- sharded_test.go | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cache_test.go b/cache_test.go index f604794..5a3b396 100644 --- a/cache_test.go +++ b/cache_test.go @@ -1426,7 +1426,7 @@ func TestSerializeUnserializable(t *testing.T) { } func BenchmarkCacheGetExpiring(b *testing.B) { - benchmarkCacheGet(b, 5 * time.Minute) + benchmarkCacheGet(b, 5*time.Minute) } func BenchmarkCacheGetNotExpiring(b *testing.B) { @@ -1458,7 +1458,7 @@ func BenchmarkRWMutexMapGet(b *testing.B) { } func BenchmarkCacheGetConcurrentExpiring(b *testing.B) { - benchmarkCacheGetConcurrent(b, 5 * time.Minute) + benchmarkCacheGetConcurrent(b, 5*time.Minute) } func BenchmarkCacheGetConcurrentNotExpiring(b *testing.B) { @@ -1510,7 +1510,7 @@ func BenchmarkRWMutexMapGetConcurrent(b *testing.B) { } func BenchmarkCacheGetManyConcurrentExpiring(b *testing.B) { - benchmarkCacheGetManyConcurrent(b, 5 * time.Minute) + benchmarkCacheGetManyConcurrent(b, 5*time.Minute) } func BenchmarkCacheGetManyConcurrentNotExpiring(b *testing.B) { @@ -1546,7 +1546,7 @@ func benchmarkCacheGetManyConcurrent(b *testing.B, exp time.Duration) { } func BenchmarkCacheSetExpiring(b *testing.B) { - benchmarkCacheSet(b, 5 * time.Minute) + benchmarkCacheSet(b, 5*time.Minute) } func BenchmarkCacheSetNotExpiring(b *testing.B) { @@ -1636,7 +1636,7 @@ func BenchmarkIncrementInt(b *testing.B) { func BenchmarkDeleteExpiredLoop(b *testing.B) { b.StopTimer() - tc := New(5 * time.Minute, 0) + tc := New(5*time.Minute, 0) tc.mu.Lock() for i := 0; i < 100000; i++ { tc.set(strconv.Itoa(i), "bar", DefaultExpiration) diff --git a/sharded_test.go b/sharded_test.go index 51088d9..aef8597 100644 --- a/sharded_test.go +++ b/sharded_test.go @@ -34,7 +34,7 @@ func TestShardedCache(t *testing.T) { } func BenchmarkShardedCacheGetExpiring(b *testing.B) { - benchmarkShardedCacheGet(b, 5 * time.Minute) + benchmarkShardedCacheGet(b, 5*time.Minute) } func BenchmarkShardedCacheGetNotExpiring(b *testing.B) { @@ -52,7 +52,7 @@ func benchmarkShardedCacheGet(b *testing.B, exp time.Duration) { } func BenchmarkShardedCacheGetManyConcurrentExpiring(b *testing.B) { - benchmarkShardedCacheGetManyConcurrent(b, 5 * time.Minute) + benchmarkShardedCacheGetManyConcurrent(b, 5*time.Minute) } func BenchmarkShardedCacheGetManyConcurrentNotExpiring(b *testing.B) {