@@ -43,7 +43,6 @@ import (
4343 "github.com/ipfs/go-graphsync/donotsendfirstblocks"
4444 "github.com/ipfs/go-graphsync/ipldutil"
4545 gsmsg "github.com/ipfs/go-graphsync/message"
46- "github.com/ipfs/go-graphsync/network"
4746 gsnet "github.com/ipfs/go-graphsync/network"
4847 "github.com/ipfs/go-graphsync/requestmanager/hooks"
4948 "github.com/ipfs/go-graphsync/storeutil"
@@ -62,9 +61,9 @@ var protocolsForTest = map[string]struct {
6261 host2Protocols []protocol.ID
6362}{
6463 "(v1.1 -> v1.1)" : {nil , nil },
65- "(v1.0 -> v1.1)" : {[]protocol.ID {network .ProtocolGraphsync_1_0_0 }, nil },
66- "(v1.1 -> v1.0)" : {nil , []protocol.ID {network .ProtocolGraphsync_1_0_0 }},
67- "(v1.0 -> v1.0)" : {[]protocol.ID {network .ProtocolGraphsync_1_0_0 }, []protocol.ID {network .ProtocolGraphsync_1_0_0 }},
64+ "(v1.0 -> v1.1)" : {[]protocol.ID {gsnet .ProtocolGraphsync_1_0_0 }, nil },
65+ "(v1.1 -> v1.0)" : {nil , []protocol.ID {gsnet .ProtocolGraphsync_1_0_0 }},
66+ "(v1.0 -> v1.0)" : {[]protocol.ID {gsnet .ProtocolGraphsync_1_0_0 }, []protocol.ID {gsnet .ProtocolGraphsync_1_0_0 }},
6867}
6968
7069func TestMakeRequestToNetwork (t * testing.T ) {
@@ -1723,14 +1722,14 @@ func newOptionalGsTestData(ctx context.Context, t *testing.T, network1Protocols
17231722 err = td .mn .LinkAll ()
17241723 require .NoError (t , err , "error linking hosts" )
17251724
1726- opts := make ([]network .Option , 0 )
1725+ opts := make ([]gsnet .Option , 0 )
17271726 if network1Protocols != nil {
1728- opts = append (opts , network .GraphsyncProtocols (network1Protocols ))
1727+ opts = append (opts , gsnet .GraphsyncProtocols (network1Protocols ))
17291728 }
17301729 td .gsnet1 = gsnet .NewFromLibp2pHost (td .host1 , opts ... )
1731- opts = make ([]network .Option , 0 )
1730+ opts = make ([]gsnet .Option , 0 )
17321731 if network2Protocols != nil {
1733- opts = append (opts , network .GraphsyncProtocols (network2Protocols ))
1732+ opts = append (opts , gsnet .GraphsyncProtocols (network2Protocols ))
17341733 }
17351734 td .gsnet2 = gsnet .NewFromLibp2pHost (td .host2 , opts ... )
17361735 td .blockStore1 = make (map [ipld.Link ][]byte )
0 commit comments