mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-04 08:06:37 +00:00
update
This commit is contained in:
@@ -106,6 +106,12 @@ func openDB(mmdbPath string) (*maxminddb.Reader, error) {
|
||||
}
|
||||
|
||||
func (gl *Geolocation) Lookup(ip net.IP) (*Record, error) {
|
||||
startTime := time.Now()
|
||||
defer func() {
|
||||
duration := time.Since(startTime)
|
||||
log.Debugf("(GeoLocation) Lookup took %s", duration)
|
||||
}()
|
||||
|
||||
gl.mux.RLock()
|
||||
defer gl.mux.RUnlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user