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-p2p-kbucket
Commits
028e6c64
Commit
028e6c64
authored
Dec 17, 2019
by
Aarsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use make correctly
parent
6e226d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
table.go
table.go
+2
-4
No files found.
table.go
View file @
028e6c64
...
...
@@ -80,12 +80,10 @@ func (rt *RoutingTable) GetTrackedCplsForRefresh() []CplRefresh {
rt
.
cplRefreshLk
.
RLock
()
defer
rt
.
cplRefreshLk
.
RUnlock
()
cpls
:=
make
([]
CplRefresh
,
len
(
rt
.
cplRefreshedAt
))
cpls
:=
make
([]
CplRefresh
,
0
,
len
(
rt
.
cplRefreshedAt
))
i
:=
0
for
c
,
t
:=
range
rt
.
cplRefreshedAt
{
cpls
[
i
]
=
CplRefresh
{
c
,
t
}
i
++
cpls
=
append
(
cpls
,
CplRefresh
{
c
,
t
})
}
return
cpls
...
...
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