Skip to content

Commit 5f66907

Browse files
removed useless set
1 parent cf5459d commit 5f66907

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

bigcache.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package fastcache
22

33
import (
4+
xxhash "github.com/cespare/xxhash/v2"
45
"sync"
56
"sync/atomic"
6-
"time"
7-
8-
xxhash "github.com/cespare/xxhash/v2"
97
)
108

119
// maxSubvalueLen is the maximum size of subvalue chunk.
@@ -57,7 +55,6 @@ func (c *Cache) SetBig(k, v []byte) {
5755
subvalue := v[:subvalueLen]
5856
v = v[subvalueLen:]
5957
c.Set(subkey.B, subvalue)
60-
time.Sleep(10 * time.Millisecond)
6158
}
6259

6360
// Write metavalue, which consists of valueHash and valueLen.

0 commit comments

Comments
 (0)