Skip to content

Commit

Permalink
updated modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Feb 22, 2024
1 parent f44494d commit 9f67df0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 128 deletions.
128 changes: 0 additions & 128 deletions modules/initipfs/config

This file was deleted.

3 changes: 3 additions & 0 deletions modules/initipfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ func updateIPFSConfigBootstrap(ipfsCfg *IPFSConfig, predefinedBootstraps, bootst
}

func writeIPFSConfig(path string, cfg IPFSConfig) {
if cfg.Bootstrap == nil {
cfg.Bootstrap = []string{}
}
data, err := json.MarshalIndent(cfg, "", " ")
if err != nil {
panic(fmt.Sprintf("Failed to marshal IPFS config: %v", err))
Expand Down

0 comments on commit 9f67df0

Please sign in to comment.