mirror of
https://github.com/fosrl/olm.git
synced 2026-05-06 10:47:55 -05:00
[PR #97] [MERGED] refactor(dns): unified record set for DNSRecordStore #98
Reference in New Issue
Block a user
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/fosrl/olm/pull/97
Author: @LaurenceJJones
Created: 2/26/2026
Status: ✅ Merged
Merged: 3/7/2026
Merged by: @oschwartz10612
Base:
dev← Head:refactor/dns-record-store-trie📝 Commits (3)
041a8f8refactor(dns): trie + unified record set for DNSRecordStorec8a53e0refactor(dns): simplify DNSRecordStore from trie to map61e0f15test(dns): add dns test cases for nodata📊 Changes
4 files changed (+355 additions, -188 deletions)
View changed files
📝
dns/dns_proxy.go(+8 -6)➕
dns/dns_proxy_test.go(+178 -0)📝
dns/dns_records.go(+127 -164)📝
dns/dns_records_test.go(+42 -18)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
fix: github.com/orgs/fosrl/discussions/2533
Logic in #96 wasnt the best we should really store records in a single map that means we dont store A/AAAA records in two maps, this will simplify the lookup logic and return an exists boolean.
How to test?
WIP untested in production, go tests are passing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.