forked from TrueCloudLab/frostfs-node
[#567] innerring: Close cached clients on shutdown
Register `CloseAll` method to be called on IR application shutdown. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9b2939d538
commit
49a42b1d3e
2 changed files with 10 additions and 0 deletions
|
@ -23,6 +23,7 @@ type (
|
|||
log *zap.Logger
|
||||
cache interface {
|
||||
Get(address *network.Address) (client.Client, error)
|
||||
CloseAll()
|
||||
}
|
||||
key *ecdsa.PrivateKey
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue