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
3895cc0a
Commit
3895cc0a
authored
Mar 25, 2020
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: address todo in engine.go
parent
288ceffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
internal/decision/engine.go
internal/decision/engine.go
+1
-2
No files found.
internal/decision/engine.go
View file @
3895cc0a
...
...
@@ -733,8 +733,7 @@ func (e *Engine) MessageSent(p peer.ID, m bsmsg.BitSwapMessage) {
// Remove sent block presences from the want list for the peer
for
_
,
bp
:=
range
m
.
BlockPresences
()
{
// TODO: record block presence bytes as well?
// l.SentBytes(?)
// Don't record sent data. We reserve that for data blocks.
if
bp
.
Type
==
pb
.
Message_Have
{
l
.
wantList
.
RemoveType
(
bp
.
Cid
,
pb
.
Message_Wantlist_Have
)
}
...
...
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