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
5577b338
Commit
5577b338
authored
Feb 19, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename for clarity
parent
88853d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
workers.go
workers.go
+2
-2
No files found.
workers.go
View file @
5577b338
...
@@ -29,7 +29,7 @@ func (bs *bitswap) startWorkers(px process.Process, ctx context.Context) {
...
@@ -29,7 +29,7 @@ func (bs *bitswap) startWorkers(px process.Process, ctx context.Context) {
// file transfers
// file transfers
for
i
:=
0
;
i
<
provideWorkers
;
i
++
{
for
i
:=
0
;
i
<
provideWorkers
;
i
++
{
px
.
Go
(
func
(
px
process
.
Process
)
{
px
.
Go
(
func
(
px
process
.
Process
)
{
bs
.
blockReceiv
eWorker
(
ctx
)
bs
.
provid
eWorker
(
ctx
)
})
})
}
}
}
}
...
@@ -55,7 +55,7 @@ func (bs *bitswap) taskWorker(ctx context.Context) {
...
@@ -55,7 +55,7 @@ func (bs *bitswap) taskWorker(ctx context.Context) {
}
}
}
}
func
(
bs
*
bitswap
)
blockReceiv
eWorker
(
ctx
context
.
Context
)
{
func
(
bs
*
bitswap
)
provid
eWorker
(
ctx
context
.
Context
)
{
for
{
for
{
select
{
select
{
case
blk
,
ok
:=
<-
bs
.
newBlocks
:
case
blk
,
ok
:=
<-
bs
.
newBlocks
:
...
...
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