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-dms3
Commits
2dc8bc83
Commit
2dc8bc83
authored
Sep 17, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(bitswap) rm vestigial fields
parent
b8fcc137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
bitswap/bitswap.go
bitswap/bitswap.go
+0
-6
No files found.
bitswap/bitswap.go
View file @
2dc8bc83
...
...
@@ -50,13 +50,9 @@ type bitswap struct {
// TODO(brian): save the strategist's state to the datastore
strategist
strategy
.
Strategist
partners
ledgerMap
// haveList is the set of keys we have values for. a map for fast lookups.
// haveList KeySet -- not needed. all values in datastore?
strategy
strategyFunc
haltChan
chan
struct
{}
}
...
...
@@ -68,12 +64,10 @@ func NewSession(parent context.Context, s bsnet.NetworkService, p *peer.Peer, d
bs
:=
&
bitswap
{
peer
:
p
,
blockstore
:
blockstore
.
NewBlockstore
(
d
),
partners
:
ledgerMap
{},
routing
:
directory
,
sender
:
bsnet
.
NewNetworkAdapter
(
s
,
&
receiver
),
haltChan
:
make
(
chan
struct
{}),
notifications
:
notifications
.
New
(),
strategy
:
yesManStrategy
,
}
receiver
.
Delegate
(
bs
)
...
...
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