mirror of
https://github.com/cirocosta/monero-exporter.git
synced 2024-12-22 06:15:07 -05:00
pkg/collector: unknown
when geoip is not provided
Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
This commit is contained in:
parent
80fe913813
commit
72c332edb3
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
dist/
|
@ -75,7 +75,7 @@ func Register(client *daemon.Client, opts ...Option) error {
|
|||||||
c := &Collector{
|
c := &Collector{
|
||||||
client: client,
|
client: client,
|
||||||
log: zapr.NewLogger(defaultLogger.Named("collector")),
|
log: zapr.NewLogger(defaultLogger.Named("collector")),
|
||||||
countryMapper: func(_ net.IP) (string, error) { return "lol", nil },
|
countryMapper: func(_ net.IP) (string, error) { return "unknown", nil },
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, opt := range opts {
|
for _, opt := range opts {
|
||||||
|
Loading…
Reference in New Issue
Block a user