Skip to content

Commit

Permalink
pkg/collector: unknown when geoip is not provided
Browse files Browse the repository at this point in the history
Signed-off-by: Ciro S. Costa <[email protected]>
  • Loading branch information
cirocosta committed Jul 11, 2021
1 parent 80fe913 commit 72c332e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
2 changes: 1 addition & 1 deletion pkg/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 72c332e

Please sign in to comment.