Repository navigation
Remove vestigial SettingsService daemon-config RPCs (ADR-053) - #1600
Conversation
After ADR-053 dropped active_database_path, the SettingsService GetDaemonConfig and UpdateDaemonConfig RPCs had only grpc_address left, which nothing consumes: the daemon binds its UDS via socket_path() / NODESPACED_SOCKET, not this field. Both RPCs had zero callers. Delete the two RPCs and their GetDaemonConfigRequest, UpdateDaemonConfigRequest, and DaemonConfigResponse messages from the proto (removing grpc_address), and remove the matching handler impls, the config_to_response helper, the now-dead default_socket_path helper, and the grpc_address field on the on-disk DaemonConfig struct. The DaemonConfig struct and its capture section remain for the live GetCaptureSettings/UpdateCaptureSettings RPCs. Closes #1596 Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
APPROVE (confirming re-review) Read the full diff — a clean, minimal greenfield deletion. Both RPCs, their three request/response messages, Validation (mine, warm checkout with sidecars staged): |
1 similar comment
|
APPROVE (confirming re-review) Read the full diff — a clean, minimal greenfield deletion. Both RPCs, their three request/response messages, Validation (mine, warm checkout with sidecars staged): |
|
APPROVE (post-merge — opened+merged between watcher polls). Clean, well-verified dead-code removal; the zero-caller claim holds up to independent check. Verified
Correct follow-on to the ADR-053 settings cleanup. Approve. |
Summary
Follow-on cleanup after ADR-053 removed
active_database_path(#1595). TheSettingsService.GetDaemonConfig/UpdateDaemonConfigRPCs and their sole remaining fieldgrpc_addressare vestigial — zero callers, andgrpc_addressis never consumed (the daemon binds its UDS viasocket_path()/NODESPACED_SOCKET, not this field).Deletes the two RPCs + their
GetDaemonConfigRequest/UpdateDaemonConfigRequest/DaemonConfigResponsemessages from the proto, and the matching handler impls,config_to_response, the now-deaddefault_socket_pathhelper, thegrpc_addressfield onDaemonConfig, and the now-unused imports. KeepsDaemonConfig.captureand the liveGetCaptureSettings/UpdateCaptureSettingsRPCs.Net: 2 files, +5 / −66.
Validation
nodespace-syncrepo) confirms zero callers of any removed symbol — only generated build artifacts referenced them.cargo fmt --check+cargo clippy -p nodespace-daemon --all-targets -- -D warningsclean.cargo test -p nodespace-daemongreen (51+... 0 failed).cargo check -p nodespace-cliandcargo check -p nodespace-app(against the regenerated proto) both clean.Closes #1596