service: [0.27.x] fix panic with NewWithConfig code path (#1646)
Co-authored-by: Erik Baranowski <erik.r.baranowski@gmail.com>
This commit is contained in:
parent
4e460bc24c
commit
1e381f860d
|
@ -58,6 +58,7 @@ func New(logger log.Logger, config *Config) *Collector {
|
|||
c := &Collector{
|
||||
serviceWhereClause: &config.ServiceWhereClause,
|
||||
useAPI: &config.UseAPI,
|
||||
v2: &config.V2,
|
||||
}
|
||||
c.SetLogger(logger)
|
||||
|
||||
|
|
Loading…
Reference in New Issue