Logging, variable rearrangement

This commit is contained in:
obscuren
2014-06-26 11:26:42 +02:00
parent 39cb34850a
commit 0ed19d9f20
5 changed files with 23 additions and 26 deletions

View File

@@ -47,7 +47,7 @@ func (cache *Cache) Put(v interface{}) interface{} {
value := NewValue(v)
enc := value.Encode()
if len(enc) >= 32 {
if len(enc) < 32 {
sha := Sha3Bin(enc)
cache.nodes[string(sha)] = NewNode(sha, value, true)