Add self-sufficient cache and abandon outdated library.

This commit is contained in:
2023-10-13 20:35:20 +01:00
parent 1df2ae5d16
commit ca13be5ef6
5 changed files with 23 additions and 27 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ func (c *BaseClient) cacheLookup(hash string) []byte {
obj, found := c.cache.client.Get(hash)
if found {
c.Logger.Debug(c, "Cache hit;", "hash", hash)
return obj.([]byte)
return obj
}
// if error is not nil it means that hash is not present in cache
c.Logger.Debug(c, "Cache miss;", "hash", hash)