mirror of
https://github.com/abh/geodns.git
synced 2026-04-27 03:45:53 +03:00
[PR #128] [MERGED] geoip2: watch and update #139
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/geodns#139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/abh/geodns/pull/128
Author: @tydavis
Created: 10/11/2021
Status: ✅ Merged
Merged: 10/31/2021
Merged by: @abh
Base:
main← Head:geoip_concurrentUpdate📝 Commits (5)
0b19890geoip2: watch and updated5ab161geoip2: add read lock to GetLocation654f28dgeoip2: remove select default, use defer unlock749e8cegeoip2: consolidate open, open all DBsa510b96geoip2: add active-checks to queries📊 Changes
3 files changed (+123 additions, -107 deletions)
View changed files
📝
http_test.go(+0 -2)📝
targeting/geoip2/geoip2.go(+118 -101)📝
targeting/targeting_test.go(+5 -4)📄 Description
Add goroutine to watch file modification time each minute. Lock and
update the files independently if the modification time is newer than
the last time it was loaded.
Also ancillary fixes for type signatures, and formatting test files.
Fixes #116, #16
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.