geolocate: first pass of code review and minor fixes (#359)
* doc(geolocate): minor cleanup * more minor cleanups of geolocate * remove disabled test and see whether now it works
This commit is contained in:
parent
3cb6c7c6fb
commit
f271e71c0b
7 changed files with 29 additions and 38 deletions
|
|
@ -645,11 +645,11 @@ func (s *Session) MaybeLookupBackendsContext(ctx context.Context) error {
|
|||
// LookupLocationContext performs a location lookup. If you want memoisation
|
||||
// of the results, you should use MaybeLookupLocationContext.
|
||||
func (s *Session) LookupLocationContext(ctx context.Context) (*geolocate.Results, error) {
|
||||
task := geolocate.Must(geolocate.NewTask(geolocate.Config{
|
||||
task := geolocate.NewTask(geolocate.Config{
|
||||
Logger: s.Logger(),
|
||||
Resolver: s.resolver,
|
||||
UserAgent: s.UserAgent(),
|
||||
}))
|
||||
})
|
||||
return task.Run(ctx)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue