mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-03-04 19:33:07 +00:00
formatting
This commit is contained in:
parent
8e337478f2
commit
9d7cbf5783
@ -136,8 +136,7 @@ type
|
||||
.}: OutDir
|
||||
|
||||
listenIp* {.
|
||||
desc:
|
||||
"IP address to listen on for remote peer connections, can be ipv4 or ipv6",
|
||||
desc: "IP address to listen on for remote peer connections, can be ipv4 or ipv6",
|
||||
defaultValue: "0.0.0.0".parseIpAddress,
|
||||
defaultValueDesc: "Listens on all addresses.",
|
||||
abbr: "i",
|
||||
|
||||
@ -272,8 +272,8 @@ method delBlock*(
|
||||
error "Failed to delete leaf metadata, block will remain on disk.", err = err.msg
|
||||
return failure(err)
|
||||
|
||||
if leafMd.blkCid.mcodec == BlockCodec and
|
||||
err =?
|
||||
if leafMd.blkCid.mcodec == BlockCodec and
|
||||
err =?
|
||||
(await self.updateBlockMetadata(leafMd.blkCid, minusRefCount = 1)).errorOption:
|
||||
if not (err of BlockNotFoundError):
|
||||
return failure(err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user