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
f005819c
Commit
f005819c
authored
May 01, 2020
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: MessageQueue docs
parent
a7c7865a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
internal/messagequeue/messagequeue.go
internal/messagequeue/messagequeue.go
+3
-2
No files found.
internal/messagequeue/messagequeue.go
View file @
f005819c
...
...
@@ -161,8 +161,8 @@ func (r *recallWantlist) SentAt(c cid.Cid, at time.Time) {
}
// ClearSentAt clears out the record of the time a want was sent.
// We clear the sent at time when we receive a response for a key
so that
//
subsequen
t response
s
for
the key don't appear to be even further delayed
.
// We clear the sent at time when we receive a response for a key
as we
//
only need the firs
t response for
latency measurement
.
func
(
r
*
recallWantlist
)
ClearSentAt
(
c
cid
.
Cid
)
{
delete
(
r
.
sentAt
,
c
)
}
...
...
@@ -201,6 +201,7 @@ type DontHaveTimeoutManager interface {
AddPending
([]
cid
.
Cid
)
// CancelPending removes the wants
CancelPending
([]
cid
.
Cid
)
// UpdateMessageLatency informs the manager of a new latency measurement
UpdateMessageLatency
(
time
.
Duration
)
}
...
...
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