summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorketsuban <ketsuban@192.168.3.110>2026-08-26 10:29:19 +0000
committerketsuban <ketsuban@192.168.3.110>2026-08-26 10:29:19 +0000
commit73c9b14d9c1a5cb3f0f0401e5a8c9854f1314741 (patch)
tree3eea384fcddad6a5916a6c38cc123ad2880d1c87 /modules
parentce5422507d901717f0cfc5a1a12dd6eaeb70d9e2 (diff)
downloadkukuri-73c9b14d9c1a5cb3f0f0401e5a8c9854f1314741.tar.gz
kukuri-73c9b14d9c1a5cb3f0f0401e5a8c9854f1314741.tar.bz2
kukuri-73c9b14d9c1a5cb3f0f0401e5a8c9854f1314741.zip
OkioBlockStore: imports
Diffstat (limited to 'modules')
-rw-r--r--modules/orgflow-content-store/src/jvmMain/kotlin/jp/orgflow/contentstore/jvm/OkioBlockStore.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/orgflow-content-store/src/jvmMain/kotlin/jp/orgflow/contentstore/jvm/OkioBlockStore.kt b/modules/orgflow-content-store/src/jvmMain/kotlin/jp/orgflow/contentstore/jvm/OkioBlockStore.kt
index 773507d..df0928d 100644
--- a/modules/orgflow-content-store/src/jvmMain/kotlin/jp/orgflow/contentstore/jvm/OkioBlockStore.kt
+++ b/modules/orgflow-content-store/src/jvmMain/kotlin/jp/orgflow/contentstore/jvm/OkioBlockStore.kt
@@ -2,14 +2,19 @@ package jp.orgflow.contentstore.jvm
import jp.orgflow.contentstore.BlockStore
import jp.orgflow.contentstore.Cid
+import jp.orgflow.contentstore.ContentAddresser
import jp.orgflow.contentstore.ContentBlock
import okio.FileSystem
+import okio.Path
import okio.Path.Companion.toPath
// ch.20a realization: directory-backed block store with on-read CID verification.
// Layout: <root>/<first2>/<rest of hex>
-class OkioBlockStore(private val root: String, private val fs: FileSystem = FileSystem.SYSTEM) : BlockStore {
+class OkioBlockStore(
+ private val root: String,
+ private val fs: FileSystem = FileSystem.SYSTEM,
+) : BlockStore {
private fun pathFor(cid: Cid): Path =
"$root/${cid.hashHex.take(2)}/${cid.hashHex}".toPath()