Skip to content

Commit

Permalink
updated datastore to pebbleds from levelds
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Dec 15, 2024
1 parent ed8864a commit 8ca1032
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/initipfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ type Child struct {
ShardFunc string `json:"shardFunc,omitempty"` // Include omitempty to omit the field if empty
Sync bool `json:"sync,omitempty"` // Include omitempty for optional fields
Type string `json:"type"`
Compression string `json:"compression,omitempty"` // For levelds type child
Compression string `json:"compression,omitempty"` // For pebbleds type child
}

type ApiResponse struct {
Expand Down Expand Up @@ -373,8 +373,8 @@ func updateDatastorePath(ipfsCfg *IPFSConfig, newPath string, apiIp string) {
if mount.Child.Type == "flatfs" {
ipfsCfg.Datastore.Spec.Mounts[i].Child.Path = newPath + "/blocks"
}
// Update the path for levelds
if mount.Child.Type == "levelds" {
// Update the path for pebbleds
if mount.Child.Type == "pebbleds" {
ipfsCfg.Datastore.Spec.Mounts[i].Child.Path = newPath + "/datastore"
}
}
Expand Down Expand Up @@ -443,7 +443,7 @@ func writePredefinedFiles(ipfsDataPath, ipfsDatastorePath string) {
{
Mountpoint: "/",
Path: ipfsDatastorePath + "/datastore",
Type: "levelds",
Type: "pebbleds",
},
},
Type: "mount",
Expand Down

0 comments on commit 8ca1032

Please sign in to comment.