Skip to content
Snippets Groups Projects
Commit 6a4e9435 authored by Daniel Czerwonk's avatar Daniel Czerwonk
Browse files

fixed TestNewRoute

parent 4a2f12dc
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ type Route struct {
}
// NewRoute generates a new route with paths p
func NewRoute(pfx net.Prefix, p ...*Path) *Route {
func NewRoute(pfx net.Prefix, p *Path) *Route {
r := &Route{
pfx: pfx,
}
......@@ -39,7 +39,7 @@ func NewRoute(pfx net.Prefix, p ...*Path) *Route {
return r
}
r.paths = append(r.paths, p...)
r.paths = append(r.paths, p)
return r
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment