mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
Bump version and fix megacheck report
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -35,7 +35,7 @@ var (
|
||||
|
||||
const (
|
||||
// VERSION is the current version for the server.
|
||||
VERSION = "1.3.0"
|
||||
VERSION = "1.3.1"
|
||||
|
||||
// PROTO is the currently supported protocol.
|
||||
// 0 was the original
|
||||
|
||||
@@ -316,10 +316,7 @@ func (s *Sublist) reduceCacheCount() {
|
||||
s.cache.Range(func(k, v interface{}) bool {
|
||||
s.cache.Delete(k.(string))
|
||||
n := atomic.AddInt32(&s.cacheNum, -1)
|
||||
if n < slCacheSweep {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return n >= slCacheSweep
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user