facebookincubator / dhcplb

dhcplb is Facebook's implementation of a load balancer for DHCP.
MIT License
1.05k stars 90 forks source link

[throttle]: Migrate to golang-lru v2 #41

Closed xaionaro closed 1 year ago

xaionaro commented 1 year ago

golang-lru says:

Please use github.com/hashicorp/golang-lru/v2 for all new code as this version supports generics and is faster; old code can specify a specific tag, e.g. github.com/hashicorp/golang-lru/v0.6.0 for backwards compatibility.

Thus just updating the dependency.

Issue: https://github.com/facebookincubator/dhcplb/issues/40


Test Plan

[xaionaro@void dhcplb]$ go test ./... -count=1
?       github.com/facebookincubator/dhcplb [no test files]
ok      github.com/facebookincubator/dhcplb/lib 4.108s

Feel free to suggest better test plan :)

facebook-github-bot commented 1 year ago

@lestrozi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@pmazzini merged this pull request in facebookincubator/dhcplb@3faf5e79688cee41e9ef3a9f496d42debbe992fa.