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
2aae20a9
Unverified
Commit
2aae20a9
authored
Mar 12, 2019
by
Steven Allen
Committed by
GitHub
Mar 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #98 from ipfs/chores/cleanup-dead-code
refactor(messagequeue): remove dead code
parents
6acf56aa
22d5f13c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
messagequeue/messagequeue.go
messagequeue/messagequeue.go
+0
-15
No files found.
messagequeue/messagequeue.go
View file @
2aae20a9
...
...
@@ -23,17 +23,12 @@ type MessageNetwork interface {
NewMessageSender
(
context
.
Context
,
peer
.
ID
)
(
bsnet
.
MessageSender
,
error
)
}
type
request
interface
{
handle
(
mq
*
MessageQueue
)
}
// MessageQueue implements queue of want messages to send to peers.
type
MessageQueue
struct
{
ctx
context
.
Context
p
peer
.
ID
network
MessageNetwork
newRequests
chan
request
outgoingWork
chan
struct
{}
done
chan
struct
{}
...
...
@@ -44,15 +39,6 @@ type MessageQueue struct {
sender
bsnet
.
MessageSender
}
type
messageRequest
struct
{
entries
[]
bsmsg
.
Entry
ses
uint64
}
type
wantlistRequest
struct
{
wl
*
wantlist
.
SessionTrackedWantlist
}
// New creats a new MessageQueue.
func
New
(
ctx
context
.
Context
,
p
peer
.
ID
,
network
MessageNetwork
)
*
MessageQueue
{
return
&
MessageQueue
{
...
...
@@ -60,7 +46,6 @@ func New(ctx context.Context, p peer.ID, network MessageNetwork) *MessageQueue {
wl
:
wantlist
.
NewSessionTrackedWantlist
(),
network
:
network
,
p
:
p
,
newRequests
:
make
(
chan
request
,
16
),
outgoingWork
:
make
(
chan
struct
{},
1
),
done
:
make
(
chan
struct
{}),
}
...
...
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