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:
Jan-Otto Kröpke 2024-09-28 10:53:41 +02:00 committed by GitHub
parent 9febf1e97c
commit bf6688c1fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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