Skip to content

Commit

Permalink
[#1621] services/tree: Fix LRU evict callback
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
  • Loading branch information
fyrchik committed Jan 16, 2023
1 parent 0ba5ad9 commit a144852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/tree/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var errRecentlyFailed = errors.New("client has recently failed")

func (c *clientCache) init() {
l, _ := simplelru.NewLRU(defaultClientCacheSize, func(key, value interface{}) {
_ = value.(*grpc.ClientConn).Close()
_ = value.(cacheItem).cc.Close()
})
c.LRU = *l
}
Expand Down

0 comments on commit a144852

Please sign in to comment.