This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
benchmark: fix parallelWriter.
Fixes
#18
Kamil Kisiel
11 years ago
parent
14f550f51a
commit
50c25fb3b2
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
context_test.go
+ 1
- 1
context_test.go
View File
@ -98,7 +98,7 @@ func parallelReader(r *http.Request, key string, iterations int, wait, done chan
func
parallelWriter
(
r
*
http
.
Request
,
key
,
value
string
,
iterations
int
,
wait
,
done
chan
struct
{
}
)
{
func
parallelWriter
(
r
*
http
.
Request
,
key
,
value
string
,
iterations
int
,
wait
,
done
chan
struct
{
}
)
{
<-
wait
<-
wait
for
i
:=
0
;
i
<
iterations
;
i
++
{
for
i
:=
0
;
i
<
iterations
;
i
++
{
G
et
(
r
,
key
)
S
et
(
r
,
key
,
value
)
}
}
done
<-
struct
{
}
{
}
done
<-
struct
{
}
{
}
Write
Preview
Loading…
Cancel
Save