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
33ae9d43
Commit
33ae9d43
authored
Dec 13, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc(bitswap/strat) rm noisy message
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
aa4ba09b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
strategy/strategy.go
strategy/strategy.go
+0
-1
No files found.
strategy/strategy.go
View file @
33ae9d43
...
@@ -71,7 +71,6 @@ func (s *strategist) ShouldSendBlockToPeer(k u.Key, p peer.Peer) bool {
...
@@ -71,7 +71,6 @@ func (s *strategist) ShouldSendBlockToPeer(k u.Key, p peer.Peer) bool {
// Dont resend blocks within a certain time period
// Dont resend blocks within a certain time period
t
,
ok
:=
ledger
.
sentToPeer
[
k
]
t
,
ok
:=
ledger
.
sentToPeer
[
k
]
if
ok
&&
t
.
Add
(
resendTimeoutPeriod
)
.
After
(
time
.
Now
())
{
if
ok
&&
t
.
Add
(
resendTimeoutPeriod
)
.
After
(
time
.
Now
())
{
log
.
Error
(
"Prevented block resend!"
)
return
false
return
false
}
}
...
...
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