Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmn committed Nov 30, 2015
1 parent 9fc6f9c commit 7c1e7f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cache_test.go
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions sharded_test.go
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 7c1e7f5

Please sign in to comment.