go-ipfs-config: address p.r. comments
License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
Kevin Atkinson committed
Jun 12, 2017 at 21:43 UTC
4eb6ac60549fb55f32aef34a8c176976521389a4
1 file changed
+3
-3
config/init.go
+3
-3
@@ -39,7 +39,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
39
Gateway: "/ip4/127.0.0.1/tcp/8080",
40
},
41
42
- Datastore: *datastore,
42
+ Datastore: datastore,
43
Bootstrap: BootstrapPeerStrings(bootstrapPeers),
44
Identity: identity,
45
Discovery: Discovery{MDNS{
@@ -77,8 +77,8 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
77
}
78
79
// DatastoreConfig is an internal function exported to aid in testing.
80
-func DefaultDatastoreConfig() *Datastore {
81
- return &Datastore{
80
+func DefaultDatastoreConfig() Datastore {
81
+ return Datastore{
82
StorageMax: "10GB",
83
StorageGCWatermark: 90, // 90%
84
GCPeriod: "1h",