Update main.go
Henrique Dias committed
Dec 11, 2019 at 17:25 UTC
a596c970c9163fe1bffad4d1a45ccee9efc189e5
1 file changed
+4
docs/examples/go-ipfs-as-a-library/main.go
+4
@@ -57,6 +57,10 @@ func createTempRepo(ctx context.Context) (string, error) {
57
if err != nil {
58
return "", err
59
}
60
+
61
+ // Add your custom configuration to the repository config
62
+ // For example, you can enable sharding with:
63
+ // cfg.Experimental.ShardingEnabled = true
64
65
// Create the repo with the config
66
err = fsrepo.Init(repoPath, cfg)