Skip to content

Commit 7c1e7f5

Browse files
committed
go fmt
1 parent 9fc6f9c commit 7c1e7f5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cache_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ func TestSerializeUnserializable(t *testing.T) {
14261426
}
14271427

14281428
func BenchmarkCacheGetExpiring(b *testing.B) {
1429-
benchmarkCacheGet(b, 5 * time.Minute)
1429+
benchmarkCacheGet(b, 5*time.Minute)
14301430
}
14311431

14321432
func BenchmarkCacheGetNotExpiring(b *testing.B) {
@@ -1458,7 +1458,7 @@ func BenchmarkRWMutexMapGet(b *testing.B) {
14581458
}
14591459

14601460
func BenchmarkCacheGetConcurrentExpiring(b *testing.B) {
1461-
benchmarkCacheGetConcurrent(b, 5 * time.Minute)
1461+
benchmarkCacheGetConcurrent(b, 5*time.Minute)
14621462
}
14631463

14641464
func BenchmarkCacheGetConcurrentNotExpiring(b *testing.B) {
@@ -1510,7 +1510,7 @@ func BenchmarkRWMutexMapGetConcurrent(b *testing.B) {
15101510
}
15111511

15121512
func BenchmarkCacheGetManyConcurrentExpiring(b *testing.B) {
1513-
benchmarkCacheGetManyConcurrent(b, 5 * time.Minute)
1513+
benchmarkCacheGetManyConcurrent(b, 5*time.Minute)
15141514
}
15151515

15161516
func BenchmarkCacheGetManyConcurrentNotExpiring(b *testing.B) {
@@ -1546,7 +1546,7 @@ func benchmarkCacheGetManyConcurrent(b *testing.B, exp time.Duration) {
15461546
}
15471547

15481548
func BenchmarkCacheSetExpiring(b *testing.B) {
1549-
benchmarkCacheSet(b, 5 * time.Minute)
1549+
benchmarkCacheSet(b, 5*time.Minute)
15501550
}
15511551

15521552
func BenchmarkCacheSetNotExpiring(b *testing.B) {
@@ -1636,7 +1636,7 @@ func BenchmarkIncrementInt(b *testing.B) {
16361636

16371637
func BenchmarkDeleteExpiredLoop(b *testing.B) {
16381638
b.StopTimer()
1639-
tc := New(5 * time.Minute, 0)
1639+
tc := New(5*time.Minute, 0)
16401640
tc.mu.Lock()
16411641
for i := 0; i < 100000; i++ {
16421642
tc.set(strconv.Itoa(i), "bar", DefaultExpiration)

sharded_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestShardedCache(t *testing.T) {
3434
}
3535

3636
func BenchmarkShardedCacheGetExpiring(b *testing.B) {
37-
benchmarkShardedCacheGet(b, 5 * time.Minute)
37+
benchmarkShardedCacheGet(b, 5*time.Minute)
3838
}
3939

4040
func BenchmarkShardedCacheGetNotExpiring(b *testing.B) {
@@ -52,7 +52,7 @@ func benchmarkShardedCacheGet(b *testing.B, exp time.Duration) {
5252
}
5353

5454
func BenchmarkShardedCacheGetManyConcurrentExpiring(b *testing.B) {
55-
benchmarkShardedCacheGetManyConcurrent(b, 5 * time.Minute)
55+
benchmarkShardedCacheGetManyConcurrent(b, 5*time.Minute)
5656
}
5757

5858
func BenchmarkShardedCacheGetManyConcurrentNotExpiring(b *testing.B) {

0 commit comments

Comments
 (0)