Fix build

This commit is contained in:
Martin Polden 2018-08-27 21:39:49 +02:00
parent a6b0a95581
commit de54d88327
2 changed files with 4 additions and 4 deletions

View File

@ -20,11 +20,11 @@ func (t *testDb) Country(net.IP) (geo.Country, error) {
return geo.Country{Name: "Elbonia", ISO: "EB"}, nil
}
func (t *testDb) City(net.IP) (database.City, error) {
return database.City{Name: "Bornyasherk"}, nil
func (t *testDb) City(net.IP) (geo.City, error) {
return geo.City{Name: "Bornyasherk"}, nil
}
func (t *testDb) IsEmpty() bool { return false }
func (t *testDb) IsEmpty() bool { return false }
func testServer() *Server {
return &Server{gr: &testDb{}, LookupAddr: lookupAddr, LookupPort: lookupPort}

View File

@ -1,8 +1,8 @@
package geo
import (
"net"
"math"
"net"
geoip2 "github.com/oschwald/geoip2-golang"
)