[#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:
Leonard Lyubich 2021-05-31 09:51:06 +03:00 committed by Leonard Lyubich
parent 9b2939d538
commit 49a42b1d3e
2 changed files with 10 additions and 0 deletions

View file

@ -23,6 +23,7 @@ type (
log *zap.Logger
cache interface {
Get(address *network.Address) (client.Client, error)
CloseAll()
}
key *ecdsa.PrivateKey