Close all Conn.Pairs inside of (ws *Workspace) Close() in any case
The current close method of workspace doesn't close all ConnPair in any case. Please provide a solution which is able to close all CoinPair in all cases
For example
if n-1 close handlers are falling then the code doesn't close all ConnPairs
func (ws *Workspace) Close() error {
if err := ws.settings.Close(); err != nil {
return util.WrapError(err)
}
if err := ws.meta.Close(); err != nil {
return util.WrapError(err)
}
if err := ws.metaConnPair.Close(); err != nil {
return util.WrapError(err)
}
if err := ws.auth.Close(); err != nil {
return util.WrapError(err)
}
if err := ws.logs.Close(); err != nil {
return util.WrapError(err)
}
if err := ws.insightsEngine.Close(); err != nil {
return util.WrapError(err)
}
return nil
}
Edited by Donutloop