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
p2p
go-buffer-pool
Commits
10073fde
Commit
10073fde
authored
Nov 17, 2017
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make go vet a bit happier
parent
2ade7ce2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
pool.go
pool.go
+1
-1
pool_test.go
pool_test.go
+1
-1
No files found.
pool.go
View file @
10073fde
...
@@ -92,7 +92,7 @@ func nextPowerOfTwo(v uint32) uint32 {
...
@@ -92,7 +92,7 @@ func nextPowerOfTwo(v uint32) uint32 {
// fmt.Printf("-> %d", v)
// fmt.Printf("-> %d", v)
i
:=
uint32
(
0
)
i
:=
uint32
(
0
)
for
i
=
0
;
v
>
1
;
i
++
{
for
;
v
>
1
;
i
++
{
v
=
v
>>
1
v
=
v
>>
1
}
}
...
...
pool_test.go
View file @
10073fde
...
@@ -162,7 +162,7 @@ func TestPoolStressByteSlicePool(t *testing.T) {
...
@@ -162,7 +162,7 @@ func TestPoolStressByteSlicePool(t *testing.T) {
if
testing
.
Short
()
{
if
testing
.
Short
()
{
N
/=
100
N
/=
100
}
}
p
:=
ByteSlicePool
p
:=
&
ByteSlicePool
done
:=
make
(
chan
bool
)
done
:=
make
(
chan
bool
)
errs
:=
make
(
chan
error
)
errs
:=
make
(
chan
error
)
for
i
:=
0
;
i
<
P
;
i
++
{
for
i
:=
0
;
i
<
P
;
i
++
{
...
...
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