@cryptotaxi247 / kubo / commits / d84895e0d

go-ipfs-config: cache ipns entries to speed things up a little

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Oct 22, 2015 at 16:27 UTC d84895e0d953e40493b13413cc217b97ae9f3f54
2 files changed +6
config/init.go
+4
@@ -64,6 +64,10 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
64 IPNS: "/ipns",
65 },
66
67 + Ipns: Ipns{
68 + ResolveCacheSize: 128,
69 + },
70 +
71 // tracking ipfs version used to generate the init folder and adding
72 // update checker default setting.
73 Version: VersionDefaultValue(),
config/ipns.go
+2
@@ -3,4 +3,6 @@ package config
3 type Ipns struct {
4 RepublishPeriod string
5 RecordLifetime string
6 +
7 + ResolveCacheSize int
8 }