mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
The StateSyncHandler was a leftover from an earlier architecture where protocol handlers were meant to be separate. The current implementation bypasses it entirely by having the network protocol handler directly call PeerSync::get_device_state() which properly uses the registry. Backfill has been working fine because it completely avoids this code path. Changes: - Remove StateSyncHandler struct and all its methods from protocol_handler.rs - Remove state_handler field from BackfillManager - Update exports in mod.rs - Clean up imports in backfill.rs This eliminates the confusing TODO comments about serialization that were already implemented elsewhere.