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 return geo.Country{Name: "Elbonia", ISO: "EB"}, nil
} }
func (t *testDb) City(net.IP) (database.City, error) { func (t *testDb) City(net.IP) (geo.City, error) {
return database.City{Name: "Bornyasherk"}, nil return geo.City{Name: "Bornyasherk"}, nil
} }
func (t *testDb) IsEmpty() bool { return false } func (t *testDb) IsEmpty() bool { return false }
func testServer() *Server { func testServer() *Server {
return &Server{gr: &testDb{}, LookupAddr: lookupAddr, LookupPort: lookupPort} return &Server{gr: &testDb{}, LookupAddr: lookupAddr, LookupPort: lookupPort}

View File

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