Update storage/storage.nim

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Arnaud <arno.deville@gmail.com>
This commit is contained in:
Arnaud 2026-04-03 12:59:54 +04:00 committed by GitHub
parent 7c6759a8c1
commit 0672e51edd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,13 +96,12 @@ proc stop*(s: StorageServer) {.async.} =
notice "Stopping Storage node"
var futures =
@[
s.storageNode.switch.stop(),
s.storageNode.stop(),
s.repoStore.stop(),
s.maintenance.stop(),
]
var futures = @[
s.storageNode.switch.stop(),
s.storageNode.stop(),
s.repoStore.stop(),
s.maintenance.stop(),
]
if s.restServer != nil:
futures.add(s.restServer.stop())