mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 13:57:52 +08:00
go-ipfs-config: bump repo version, remove support for old config
License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
parent
94a60d3bc7
commit
f142bea007
@ -21,10 +21,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
datastore, err := datastoreConfig()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
datastore := DefaultDatastoreConfig()
|
||||
|
||||
conf := &Config{
|
||||
|
||||
@ -79,7 +76,8 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
|
||||
return conf, nil
|
||||
}
|
||||
|
||||
func datastoreConfig() (*Datastore, error) {
|
||||
// DatastoreConfig is an internal function exported to aid in testing.
|
||||
func DefaultDatastoreConfig() *Datastore {
|
||||
return &Datastore{
|
||||
StorageMax: "10GB",
|
||||
StorageGCWatermark: 90, // 90%
|
||||
@ -111,7 +109,7 @@ func datastoreConfig() (*Datastore, error) {
|
||||
},
|
||||
},
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
||||
// identityConfig initializes a new identity.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user