Actually implement NetConnect

This commit is contained in:
Łukasz Magiera 2019-07-08 23:14:59 +02:00
parent 9a244ebdf8
commit 797ef4e0c9

View File

@ -2,7 +2,6 @@ package node
import ( import (
"context" "context"
"errors"
"reflect" "reflect"
"github.com/filecoin-project/go-lotus/api" "github.com/filecoin-project/go-lotus/api"
@ -82,7 +81,7 @@ func netPeersAPI(h host.Host) interface{} {
func netConnectAPI(h host.Host) interface{} { func netConnectAPI(h host.Host) interface{} {
return func(ctx context.Context, p peer.AddrInfo) error { return func(ctx context.Context, p peer.AddrInfo) error {
return errors.New("nope") return h.Connect(ctx, p)
} }
} }