Include the version number in the uid of the HttpSynchronization (closes #2081)

This commit is contained in:
Alexander Bock
2022-05-06 00:53:56 -07:00
parent 2816ad4d8d
commit 9715d22af0
7 changed files with 18 additions and 21 deletions

View File

@@ -117,6 +117,10 @@ void HttpSynchronization::cancel() {
_state = State::Unsynced;
}
std::string HttpSynchronization::generateUid() {
return fmt::format("{}/{}", _identifier, _version);
}
bool HttpSynchronization::trySyncFromUrl(std::string listUrl) {
HttpMemoryDownload fileListDownload(std::move(listUrl));
fileListDownload.onProgress([&c = _shouldCancel](int64_t, std::optional<int64_t>) {