Commit 91808e18 authored by Brian Tiger Chow's avatar Brian Tiger Chow

refactor: use core.ConfigOption return type

parent 7cebb33e
......@@ -22,9 +22,7 @@ import (
var log = eventlog.Logger("epictest")
type ConfigOption func(ctx context.Context) (*core.IpfsNode, error)
func MocknetTestRepo(p peer.ID, h host.Host, conf testutil.LatencyConfig) ConfigOption {
func MocknetTestRepo(p peer.ID, h host.Host, conf testutil.LatencyConfig) core.ConfigOption {
return func(ctx context.Context) (*core.IpfsNode, error) {
const kWriteCacheElems = 100
const alwaysSendToPeer = true
......@@ -43,7 +41,6 @@ func MocknetTestRepo(p peer.ID, h host.Host, conf testutil.LatencyConfig) Config
if err != nil {
return nil, err
}
return &core.IpfsNode{
Peerstore: h.Peerstore(),
Blockstore: bstore,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment