mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
7ef2743964
Events API consumers rely on being able to detect that events were skipped by the fact that the event ID has increased by more than 1. This is documented, and is absolutely necessary when trying to maintain a local model of Syncthing's state. With the introduction of LocalChangeDetected, which is not exposed to the Events API, this contract was broken. This commit introduces separate concepts of a "Global ID" and a "Subscription ID". The Global ID of an event is unique across all subscriptions. The Subscription ID is local to a particular subscription, and always increments by 1. They are both exposed over the Events API, but the Subscription ID uses the key "id" for backwards compatibility, and the "?since=xx" parameter refers to the Subscription ID (making the Global ID for information only). GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3351 LGTM: calmh |
||
---|---|---|
.. | ||
discosrv | ||
relaysrv | ||
stbench | ||
stcompdirs | ||
stdisco | ||
stevents | ||
stfileinfo | ||
stfinddevice | ||
stgenfiles | ||
stindex | ||
stsigtool | ||
stvanity | ||
stwatchfile | ||
syncthing | ||
todos | ||
.gitignore |