From afc6e2ef4f57b5db4bc69ac739ca2df0aa7ce4c0 Mon Sep 17 00:00:00 2001 From: Maksim Nabokikh Date: Sun, 7 May 2023 08:54:19 +0200 Subject: [PATCH] Init metadata client (#6) --- client/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/client.go b/client/client.go index 50eb109..3decc70 100644 --- a/client/client.go +++ b/client/client.go @@ -218,6 +218,11 @@ func (c *client) Init() error { return err } + c.metadataClient, err = metadata.NewForConfig(config) + if err != nil { + return err + } + if c.metricStorage != nil { metrics.Register( metrics.RegisterOpts{