Commit 028e6c64 authored by Aarsh Shah's avatar Aarsh Shah

use make correctly

parent 6e226d95
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment