Fix/tree svc panic [support] #323

Merged
fyrchik merged 1 commit from carpawell/frostfs-node:fix/panic-in-tree-svc_support into support/v0.36 2023-05-05 07:06:07 +00:00
2 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,7 @@ Changelog for FrostFS Node
### Changed ### Changed
### Fixed ### Fixed
- Copy number was not used for `PUT` requests (#284) - Copy number was not used for `PUT` requests (#284)
- Tree service panic in its internal client cache (#323)
### Removed ### Removed
### Updated ### Updated

View file

@ -36,7 +36,9 @@ var errRecentlyFailed = errors.New("client has recently failed")
func (c *clientCache) init() { func (c *clientCache) init() {
l, _ := simplelru.NewLRU[string, cacheItem](defaultClientCacheSize, func(_ string, value cacheItem) { l, _ := simplelru.NewLRU[string, cacheItem](defaultClientCacheSize, func(_ string, value cacheItem) {
_ = value.cc.Close() if conn := value.cc; conn != nil {
_ = conn.Close()
}
}) })
c.LRU = *l c.LRU = *l
} }