mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
create an Annotation map of the right size to avoid resizing (#881)
This commit is contained in:
committed by
Andrea Rosa
parent
6db99f6ecc
commit
0c47dbf26d
@@ -137,7 +137,7 @@ func buildConfig(app *models.App, route *models.Route) models.Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func buildAnnotations(app *models.App, route *models.Route) models.Annotations {
|
func buildAnnotations(app *models.App, route *models.Route) models.Annotations {
|
||||||
ann := make(models.Annotations)
|
ann := make(models.Annotations, len(app.Annotations)+len(route.Annotations))
|
||||||
for k, v := range app.Annotations {
|
for k, v := range app.Annotations {
|
||||||
ann[k] = v
|
ann[k] = v
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user