diff options
author | Sergey Elantsev <elantsev.s@yandex.ru> | 2021-01-27 21:43:39 +0300 |
---|---|---|
committer | Sergey Elantsev <elantsev.s@yandex.ru> | 2021-01-27 21:43:39 +0300 |
commit | 72027852e23647ecba0d79ff0f42787bfbe9a4c7 (patch) | |
tree | 1765094bf83faa31b32cbba85a673ae98d890018 /cmd | |
parent | 43c62634fdd8ff8e1deb2c20251bbc37718752aa (diff) |
go fmted
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gobgp/monitor.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/gobgp/monitor.go b/cmd/gobgp/monitor.go index bc31bde9..52e1c3b4 100644 --- a/cmd/gobgp/monitor.go +++ b/cmd/gobgp/monitor.go @@ -74,10 +74,10 @@ func makeMonitorRouteArgs(p *api.Path, showIdentifier bgp.BGPAddPathMode) []inte } func monitorRoute(pathList []*api.Path, showIdentifier bgp.BGPAddPathMode) { - var pathStrs [][]interface{} + pathStrs := make([][]interface{}, len(pathList)) - for _, p := range pathList { - pathStrs = append(pathStrs, makeMonitorRouteArgs(p, showIdentifier)) + for i, p := range pathList { + pathStrs[i] = makeMonitorRouteArgs(p, showIdentifier) } format := time.Now().UTC().Format(time.RFC3339) |