Jelajahi Sumber

Fix bug where config wasn't set

Matt Bolt 1 tahun lalu
induk
melakukan
6522d7213b
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      modules/prometheus-source/pkg/prom/query.go

+ 1 - 0
modules/prometheus-source/pkg/prom/query.go

@@ -33,6 +33,7 @@ type ContextFactory struct {
 func NewContextFactory(client prometheus.Client, promConfig *OpenCostPrometheusConfig) *ContextFactory {
 func NewContextFactory(client prometheus.Client, promConfig *OpenCostPrometheusConfig) *ContextFactory {
 	return &ContextFactory{
 	return &ContextFactory{
 		client: client,
 		client: client,
+		config: promConfig,
 	}
 	}
 }
 }