fixup! feat(nbd-client,xapi): implement multiple connections NBD

This commit is contained in:
Florent Beauchamp 2023-12-18 08:11:52 +00:00 committed by Julien Fontanet
parent 04a7982801
commit 89dc40a1c5

View File

@ -41,14 +41,16 @@ export default class MultiNbdClient {
}
if (connectedClients.length < this.#clients.length) {
warn(
`incomplete connection by multi Nbd, only ${connectedClients.length} over ${this.#clients.length} expected clients`
`incomplete connection by multi Nbd, only ${connectedClients.length} over ${
this.#clients.length
} expected clients`
)
this.#clients = connectedClients
}
}
async disconnect() {
asyncEach(this.#clients, client => client.disconnect(), {
await asyncEach(this.#clients, client => client.disconnect(), {
stopOnError: false,
})
}