Skip to content

Commit 8ca1032

Browse files
committed
updated datastore to pebbleds from levelds
1 parent ed8864a commit 8ca1032

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/initipfs/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ type Child struct {
152152
ShardFunc string `json:"shardFunc,omitempty"` // Include omitempty to omit the field if empty
153153
Sync bool `json:"sync,omitempty"` // Include omitempty for optional fields
154154
Type string `json:"type"`
155-
Compression string `json:"compression,omitempty"` // For levelds type child
155+
Compression string `json:"compression,omitempty"` // For pebbleds type child
156156
}
157157

158158
type ApiResponse struct {
@@ -373,8 +373,8 @@ func updateDatastorePath(ipfsCfg *IPFSConfig, newPath string, apiIp string) {
373373
if mount.Child.Type == "flatfs" {
374374
ipfsCfg.Datastore.Spec.Mounts[i].Child.Path = newPath + "/blocks"
375375
}
376-
// Update the path for levelds
377-
if mount.Child.Type == "levelds" {
376+
// Update the path for pebbleds
377+
if mount.Child.Type == "pebbleds" {
378378
ipfsCfg.Datastore.Spec.Mounts[i].Child.Path = newPath + "/datastore"
379379
}
380380
}
@@ -443,7 +443,7 @@ func writePredefinedFiles(ipfsDataPath, ipfsDatastorePath string) {
443443
{
444444
Mountpoint: "/",
445445
Path: ipfsDatastorePath + "/datastore",
446-
Type: "levelds",
446+
Type: "pebbleds",
447447
},
448448
},
449449
Type: "mount",

0 commit comments

Comments
 (0)