Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

santad: remove start and stop options from the sync service queue#803

Merged
tburgin merged 1 commit into
google:mainfrom
tburgin:bundle
May 9, 2022
Merged

santad: remove start and stop options from the sync service queue#803
tburgin merged 1 commit into
google:mainfrom
tburgin:bundle

Conversation

@tburgin
Copy link
Copy Markdown
Contributor

@tburgin tburgin commented May 9, 2022

The startSyncingEvents and stopSyncingEvents were used in SNTDaemonControlController's -[setSyncdListener:] method. This allowed upload requests to wait up to 2 seconds for the now legacy syncd connection to become active. The idea was to smooth out any jitter with the connection. The calls to start and stop event uploading were mistakenly removed in #775, resulting in no santad initiated uploads from taking place. It also means bundle events would never be uploaded.

This pull request removes these start and stop options. In reality the jitter mitigation didn't accomplish much. If the syncservice were to crash or hang it will take longer than a few seconds for the connection to be re-established. In that case we would be dropping the event anyways. We are okay with this, the main event is still saved to the events.db and will be uploaded on the next full sync.

@tburgin tburgin requested a review from russellhancox May 9, 2022 17:26
Copy link
Copy Markdown
Contributor

@pmarkowsky pmarkowsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@pmarkowsky pmarkowsky added the sync service Issues related to the sync service / protocol label May 9, 2022
@tburgin tburgin merged commit 6bd369c into google:main May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

sync service Issues related to the sync service / protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants