@cryptotaxi247 / kubo / commits / 91808e18f

refactor: use core.ConfigOption return type

Brian Tiger Chow committed Jan 10, 2015 at 20:20 UTC 91808e18f73e8a4cb0cb8b69dc9aee566875a3f1
1 file changed +1 -4
test/epictest/core.go
+1 -4
@@ -22,9 +22,7 @@ import (
22
23 var log = eventlog.Logger("epictest")
24
25 -type ConfigOption func(ctx context.Context) (*core.IpfsNode, error)
26 -
27 -func MocknetTestRepo(p peer.ID, h host.Host, conf testutil.LatencyConfig) ConfigOption {
25 +func MocknetTestRepo(p peer.ID, h host.Host, conf testutil.LatencyConfig) core.ConfigOption {
26 return func(ctx context.Context) (*core.IpfsNode, error) {
27 const kWriteCacheElems = 100
28 const alwaysSendToPeer = true
@@ -43,7 +41,6 @@ func MocknetTestRepo(p peer.ID, h host.Host, conf testutil.LatencyConfig) Config
41 if err != nil {
42 return nil, err
43 }
46 -
44 return &core.IpfsNode{
45 Peerstore: h.Peerstore(),
46 Blockstore: bstore,