service: [0.28.x] fix panic with NewWithConfig code path (#1647)
Co-authored-by: Erik Baranowski <erik.r.baranowski@gmail.com>
This commit is contained in:
parent
9febf1e97c
commit
bf6688c1fb
|
@ -58,6 +58,7 @@ func New(config *Config) *Collector {
|
||||||
c := &Collector{
|
c := &Collector{
|
||||||
serviceWhereClause: &config.ServiceWhereClause,
|
serviceWhereClause: &config.ServiceWhereClause,
|
||||||
useAPI: &config.UseAPI,
|
useAPI: &config.UseAPI,
|
||||||
|
v2: &config.V2,
|
||||||
}
|
}
|
||||||
|
|
||||||
return c
|
return c
|
||||||
|
|
Loading…
Reference in New Issue