Commit Graph

46 Commits

Author SHA1 Message Date
Luna Yao b7677031cb zone: fallthrough policy
heartbeat test

try_from
2026-04-30 18:56:00 +02:00
Luna Yao 92af568d8b config: rewrite
test

test

origin

test

test
2026-04-29 11:44:22 +02:00
Luna Yao 30b88bf626 peer_mgr: invalidate unreachable peer
fmt
2026-04-28 21:23:16 +02:00
Luna Yao 46d1c2aef3 node & peer_mgr: fix rpc register/unregister
mut node
2026-04-28 21:23:16 +02:00
Luna Yao e527717eef node: add reconcile
logs

reconcile

reconcile
2026-04-28 21:23:16 +02:00
Luna Yao 80041086de peer_mgr(refresh): add backoff retry
fmt

refresh
2026-04-28 15:03:53 +02:00
Luna Yao 11626d8082 remove id from zone 2026-04-19 02:17:50 +02:00
Luna Yao 9feb548bc2 remove fqdn from DnsConfig
l

l

plan: update

plan: update
2026-04-19 01:38:29 +02:00
Luna Yao cbb966d57c remove fqdn from DnsExportConfig 2026-04-19 00:34:57 +02:00
Luna Yao 4f6f8f3d93 use CancellableTask in DnsNode
remove AsyncRuntime from DnsNode

node

n

n

clippy
2026-04-18 21:26:30 +02:00
Luna Yao bc86917dea add fallthrough flag
zone

test log
2026-04-18 04:18:31 +02:00
Luna Yao 9332baf6f9 rewrite NameServerAddr
fix Url to NameServerAddr conversion

fmt
2026-04-18 03:46:43 +02:00
Luna Yao 84984e1641 move dirty to crate::utils 2026-04-18 03:46:43 +02:00
Luna Yao ba7fc1098b merge 2026-04-17 18:26:21 +02:00
Luna Yao a60f101bda merge 2026-04-17 17:45:43 +02:00
Luna Yao 5a8a1d3e6b disallow some methods from itertools 2026-04-06 18:28:30 +02:00
Luna Yao 6af62e939e constants
clippy
2026-04-06 17:38:17 +02:00
Luna Yao 012b35acd6 arrange tests
comment
2026-04-06 17:36:44 +02:00
Luna Yao 50ecd3679b peer_mgr: remove peer from cache when lost route 2026-04-06 17:04:30 +02:00
Luna Yao ee217c51f6 peer_mgr: unit tests 2026-04-06 16:19:25 +02:00
Luna Yao 4dad60a94d replace ttl with tti 2026-04-06 11:55:25 +02:00
Luna Yao 2b3417d703 remove unneeded pub 2026-04-06 11:55:25 +02:00
Luna Yao a9facedf57 peer_mgr: remove redundant * when comp Vec 2026-04-06 11:55:25 +02:00
Luna Yao faa252fc39 utils(dirty): replace Notify with watch 2026-04-06 11:55:25 +02:00
Luna Yao 604386f7e2 peer_mgr: unregister rpc in Drop 2026-04-06 11:54:51 +02:00
Luna Yao 1b220dd825 peer_mgr: add register() for rpc 2026-04-06 11:54:51 +02:00
Luna Yao 385ff54b3e fix magic-dns feature gate 2026-04-06 11:54:50 +02:00
Luna Yao d94cb3a96d peer_mgr: ignore unsupported peer 2026-04-06 11:54:50 +02:00
Luna Yao 23f63f1e4a log & clippy 2026-04-06 11:54:50 +02:00
Luna Yao 56f430bf10 add ttl to ZoneData 2026-04-06 11:54:50 +02:00
Luna Yao 3fb1da6c2e node & peer_mgr: refactor refresh logic, add my_peer_id check
node
2026-04-06 11:54:50 +02:00
Luna Yao 57a2428f21 node: add server election
peer_mgr

server: add peer_mgr

peer_mgr
2026-04-06 11:54:02 +02:00
Luna Yao 2e1f9bc9cc node & server: separate dirty flag, remove DirtyState 2026-04-06 11:54:02 +02:00
Luna Yao 5457adb533 utils: move to a mod 2026-04-06 11:54:01 +02:00
Luna Yao 474f1a3636 client: remove DnsPeerMgrDirtyFlags 2026-04-06 11:54:01 +02:00
Luna Yao efcdf4c456 utils: add DirtyState 2026-04-06 11:54:01 +02:00
Luna Yao b7073504d8 peer_mgr: use flat_map 2026-04-06 11:54:01 +02:00
Luna Yao d3ca03e20e use notify in dirty states 2026-04-06 11:54:01 +02:00
Luna Yao 3d3dba28e8 utils: add DirtyFlag 2026-04-06 11:54:01 +02:00
Luna Yao e3ed91aced peer_mgr: format 2026-04-06 11:54:01 +02:00
Luna Yao 4a18a86ed6 proto: rename DnsPeerMgrRpc 2026-04-06 11:54:01 +02:00
Luna Yao 2cd208fad4 peer_mgr: remove DnsSnapshot, store zones directly in DnsPeerInfo 2026-04-06 11:54:01 +02:00
Luna Yao fd39961567 peer_mgr: remove Derivative 2026-04-06 11:54:01 +02:00
Luna Yao 9a2ba9cce8 peer_mgr: add DnsSnapshot Model 2026-04-06 11:54:01 +02:00
Luna Yao 7b1b651a46 peer_mgr: rename cache to peers, extract ttl as a const 2026-04-06 11:54:01 +02:00
Luna Yao 0e3474f049 peer_mgr: moved to a standalone file 2026-04-06 11:54:01 +02:00