From 0b47e45e910a76c0d2d441ce07adc16d5c7d6557 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 22 Dec 2023 17:16:21 -0600 Subject: [PATCH] misc --- codex/manifest.nim | 3 +-- codex/manifest/manifest.nim | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/codex/manifest.nim b/codex/manifest.nim index 09d8624f..3cd9219e 100644 --- a/codex/manifest.nim +++ b/codex/manifest.nim @@ -1,5 +1,4 @@ import ./manifest/coders import ./manifest/manifest -import ./manifest/indexingstrategy -export manifest, coders, indexingstrategy +export manifest, coders diff --git a/codex/manifest/manifest.nim b/codex/manifest/manifest.nim index 101d5181..607479c5 100644 --- a/codex/manifest/manifest.nim +++ b/codex/manifest/manifest.nim @@ -56,7 +56,7 @@ proc originalBlocksCount*(self: Manifest): int = proc blocksCount*(self: Manifest): int = divUp(self.datasetSize.int, self.blockSize.int) -proc numberOfSlots*(self: Manifest): int = +proc numSlots*(self: Manifest): int = if not self.protected: 0 else: