From 818f38b8111b29a2883c791283d5918300e17d15 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 8 Nov 2021 16:28:28 +0300 Subject: [PATCH] [#38] Replace gcache with golang-lru Signed-off-by: Denis Kirillov --- go.mod | 3 ++- go.sum | Bin 46195 -> 46028 bytes pool/cache.go | 36 +++++++++++++++--------------------- pool/pool.go | 5 ++++- pool/pool_test.go | 12 +++++++----- pool/sampler_test.go | 5 ++++- 6 files changed, 32 insertions(+), 29 deletions(-) diff --git a/go.mod b/go.mod index 91beb9b..3cc26de 100644 --- a/go.mod +++ b/go.mod @@ -4,13 +4,14 @@ go 1.16 require ( github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210521073959-f0d4d129b7f1 - github.com/bluele/gcache v0.0.2 github.com/golang/mock v1.6.0 github.com/google/uuid v1.2.0 + github.com/hashicorp/golang-lru v0.5.4 github.com/mr-tron/base58 v1.2.0 github.com/nspcc-dev/hrw v1.0.9 github.com/nspcc-dev/neo-go v0.96.1 github.com/nspcc-dev/neofs-api-go v1.30.0 + github.com/nspcc-dev/neofs-crypto v0.3.0 github.com/stretchr/testify v1.7.0 go.uber.org/zap v1.18.1 google.golang.org/grpc v1.41.0 diff --git a/go.sum b/go.sum index 773a7df52ccff1c4f5be592c0a2504ae9a13e5a3..c54d7747e9773e2b212f1823bf263f5fae160e15 100644 GIT binary patch delta 18 acmezTg6Yh2rVZP8C+`>J*qqA8w+sMVy$DMH delta 173 zcmX@}oayrmrVZP8>vKv|b5ixwlM|COQWeS!^bGWj6fz90!jqHIQX)K^)6L!WUEG~A z3