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
a2d6e30b
Commit
a2d6e30b
authored
Aug 22, 2019
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove extraneous alloc
parent
1e10d28b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
session/sessionwants.go
session/sessionwants.go
+1
-1
No files found.
session/sessionwants.go
View file @
a2d6e30b
...
...
@@ -171,7 +171,7 @@ func (sw *sessionWants) FilterInteresting(ks []cid.Cid) []cid.Cid {
sw
.
RLock
()
defer
sw
.
RUnlock
()
interested
:=
make
(
[]
cid
.
Cid
,
0
,
len
(
ks
))
var
interested
[]
cid
.
Cid
for
_
,
k
:=
range
ks
{
if
sw
.
unlockedIsWanted
(
k
)
||
sw
.
pastWants
.
Has
(
k
)
{
interested
=
append
(
interested
,
k
)
...
...
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