dominant-strategies / go-quai

Official Go Implementation of the Quai Network
GNU General Public License v3.0
2.37k stars 461 forks source link

Upgrade to golang-lru v2 #1771

Closed wizeguyy closed 4 months ago

wizeguyy commented 4 months ago

Today, we use two LRU versions: "github.com/hnlq715/golang-lru" "github.com/hashicorp/golang-lru"

we use the hnlq715 package, because it supports timed expiry, but the hashicorp package would be preferable due to its wider adoption and active maintenance.

as of hashicorp/golang-lru/v2 hashicorp now supports timed expiry, so there is no longer a need to use the hnlq715 package. hashicorp v2 uses generics though, so there is some amount of refactoring required to perform the upgrade.