removed print line to fix #1
This commit is contained in:
@@ -2,8 +2,8 @@ package ccache
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/karlseguin/gspec"
|
"github.com/karlseguin/gspec"
|
||||||
"testing"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
1
item.go
1
item.go
@@ -39,7 +39,6 @@ func newItem(key string, value interface{}, expires time.Time) *Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *Item) shouldPromote(getsPerPromote int32) bool {
|
func (i *Item) shouldPromote(getsPerPromote int32) bool {
|
||||||
println(atomic.LoadInt32(&i.promotions))
|
|
||||||
return atomic.AddInt32(&i.promotions, 1) == getsPerPromote
|
return atomic.AddInt32(&i.promotions, 1) == getsPerPromote
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user