router: pass node metadata to route instead of service metadata (#1855)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-07-17 18:45:22 +03:00 committed by GitHub
parent f9bf562393
commit bcc890e47c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,7 @@ func (r *router) manageRoutes(service *registry.Service, action, network string)
Router: r.options.Id, Router: r.options.Id,
Link: DefaultLink, Link: DefaultLink,
Metric: DefaultLocalMetric, Metric: DefaultLocalMetric,
Metadata: service.Metadata, Metadata: node.Metadata,
} }
if err := r.manageRoute(route, action); err != nil { if err := r.manageRoute(route, action); err != nil {