Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
04e4abd8
Commit
04e4abd8
authored
Aug 20, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
routing: rework interfaces to make separation easier
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
3d7d133e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
network/ipfs_impl.go
network/ipfs_impl.go
+2
-2
No files found.
network/ipfs_impl.go
View file @
04e4abd8
...
...
@@ -20,7 +20,7 @@ import (
var
log
=
logging
.
Logger
(
"bitswap_network"
)
// NewFromIpfsHost returns a BitSwapNetwork supported by underlying IPFS host
func
NewFromIpfsHost
(
host
host
.
Host
,
r
routing
.
Ipfs
Routing
)
BitSwapNetwork
{
func
NewFromIpfsHost
(
host
host
.
Host
,
r
routing
.
Content
Routing
)
BitSwapNetwork
{
bitswapNetwork
:=
impl
{
host
:
host
,
routing
:
r
,
...
...
@@ -36,7 +36,7 @@ func NewFromIpfsHost(host host.Host, r routing.IpfsRouting) BitSwapNetwork {
// NetMessage objects, into the bitswap network interface.
type
impl
struct
{
host
host
.
Host
routing
routing
.
Ipfs
Routing
routing
routing
.
Content
Routing
// inbound messages from the network are forwarded to the receiver
receiver
Receiver
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment