Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yachang committed Nov 9, 2018
1 parent 15ddd2c commit df8ad16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions handler/dataset/legacy-data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ func TestSelectGeoLegacyFile(t *testing.T) {
t.Errorf("Did not select correct dataset. Expected %s, got %s, %+v.",
"Maxmind/2017/08/15/20170815T200946Z-GeoLite2-City-CSV.zip", filename4, err)
}
/*
// before the cutoff date, IPv6
date6, _ := time.Parse("January 2, 2006", "April 4, 2016")
filename6, err := dataset.SelectGeoLegacyFile(date6, testBucket, false)
if filename6 != "Maxmind/2016/03/08/20160308T080000Z-GeoLiteCityv6.dat.gz" || err != nil {
t.Errorf("Did not select correct dataset. Expected %s, got %s, %+v.",
"Maxmind/2016/03/08/20160308T080000Z-GeoLiteCityv6.dat.gz", filename6, err)
}
*/
/*
// before the cutoff date, IPv6
date6, _ := time.Parse("January 2, 2006", "April 4, 2016")
filename6, err := dataset.SelectGeoLegacyFile(date6, testBucket, false)
if filename6 != "Maxmind/2016/03/08/20160308T080000Z-GeoLiteCityv6.dat.gz" || err != nil {
t.Errorf("Did not select correct dataset. Expected %s, got %s, %+v.",
"Maxmind/2016/03/08/20160308T080000Z-GeoLiteCityv6.dat.gz", filename6, err)
}
*/
// return the latest available dataset.
date5, _ := time.Parse("January 2, 2006", "August 15, 2037")
filename5, err := dataset.SelectGeoLegacyFile(date5, testBucket)
Expand Down
2 changes: 1 addition & 1 deletion handler/geoip/geoip.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type GeoIP struct {
db *C.GeoIP

name string

// We don't use GeoIP's thread-safe API calls, which means there is a
// single global netmask variable that gets clobbered in the main
// lookup routine. Any calls which have _GeoIP_seek_record_gl need to
Expand Down

0 comments on commit df8ad16

Please sign in to comment.