fix: relay sync create/update classification to prevent false create mode on updates #56
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:sync-classification"
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?
The change replaces the incorrect use of
synced == 0for determining whether a relay is new with a proper check based on whether the relay has ever successfully synced. A new helper and classifier were introduced, and all infra sync entry points were updated to use this logic. As a result, only first-time syncs trigger create behavior, while updates and retries correctly use update semantics without regenerating secrets.closes #55