pkg/collector: unknown when geoip is not provided

Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
This commit is contained in:
Ciro S. Costa 2021-07-11 07:37:54 -04:00
parent 80fe913813
commit 72c332edb3
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist/

View File

@ -75,7 +75,7 @@ func Register(client *daemon.Client, opts ...Option) error {
c := &Collector{
client: client,
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 {