Skip to content

Commit

Permalink
Merge pull request #153 from ethpandaops/feat/empty-geo
Browse files Browse the repository at this point in the history
feat(server/coordinator): ignore empty geo data
  • Loading branch information
Savid authored Jul 28, 2023
2 parents 49dd23f + c65969d commit 5708e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/service/coordinator/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (c *Client) CreateNodeRecords(ctx context.Context, req *xatu.CreateNodeReco
c.log.WithField("ip", *ipAddress).WithError(err).Warn("failed to lookup geoip data")
}

if geoipLookupResult != nil {
if geoipLookupResult != nil && pRecord.GeoCountryCode != nil {
pRecord.GeoCity = &geoipLookupResult.CityName
pRecord.GeoCountry = &geoipLookupResult.CountryName
pRecord.GeoCountryCode = &geoipLookupResult.CountryCode
Expand Down

0 comments on commit 5708e95

Please sign in to comment.