JamesSunXX
JamesSunXX
``` fmClient := req.C(). SetTimeout(time.Second * 3). EnableTraceAll(). SetCommonRetryCount(1) resp, err := fmClient.R(). SetBodyJsonMarshal(data). EnableDump(). EnableTrace(). Post(domain + getToken) if err != nil { return res, err } respCode :=...
The problem still exists in version 3.0.1,panic: runtime error: index out of range [7] with length 0
``` panic(0x175a640, 0xc01e3d3b20) /var/jenkins_home/go/go1.15.6/src/runtime/panic.go:975 +0x47a encoding/binary.littleEndian.Uint64(...) /var/jenkins_home/go/go1.15.6/src/encoding/binary/binary.go:77 github.com/allegro/bigcache/v3.readTimestampFromEntry(...) /root/go/pkg/mod/github.com/allegro/bigcache/[email protected]/encoding.go:58 github.com/allegro/bigcache/v3.(*cacheShard).onEvict(0xc00037b8c0, 0xc023bc0f6a, 0x0, 0x57dbe, 0x6204692b, 0xc01e6b06a8, 0x0) /root/go/pkg/mod/github.com/allegro/bigcache/[email protected]/shard.go:271 +0x85 github.com/allegro/bigcache/v3.(*cacheShard).set(0xc00037b8c0, 0xc01e3ed930, 0xd, 0xc7022ec1611f8c45, 0xc01de4f400, 0x3ce, 0x400, 0x3ce, 0xc01de4f400) /root/go/pkg/mod/github.com/allegro/bigcache/[email protected]/shard.go:134 +0x31a github.com/allegro/bigcache/v3.(*BigCache).Set(0xc0000a6dd0,...
The problem still exists in version 3.0.1,panic: runtime error: index out of range [7] with length 0
``` panic: runtime error: index out of range [7] with length 0 goroutine 57 [running]: encoding/binary.littleEndian.Uint64(...) /var/jenkins_home/go/go1.15.6/src/encoding/binary/binary.go:77 github.com/allegro/bigcache/v3.readTimestampFromEntry(...) /root/go/pkg/mod/github.com/allegro/bigcache/[email protected]/encoding.go:58 github.com/allegro/bigcache/v3.(*cacheShard).onEvict(0xc00777eb40, 0xc025622171, 0x0, 0x6cbb7, 0x62036d13, 0xc000056e40, 0x0) /root/go/pkg/mod/github.com/allegro/bigcache/[email protected]/shard.go:271 +0x85 github.com/allegro/bigcache/v3.(*cacheShard).cleanUp(0xc00777eb40, 0x62036d13)...