sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit dccc84c000236df34ec4fed294e72ec69847689c
parent b06c4429d1ea419086b33e149b56dbf32ada3cf2
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 18 Feb 2024 15:54:22 +0100

remove NX not_modified case

Diffstat:
Msrc/include/sync_service.h | 13-------------
Msrc/lib/sync_api_upload.c | 2+-
2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/src/include/sync_service.h b/src/include/sync_service.h @@ -174,19 +174,6 @@ struct SYNC_UploadDetails } success; /** - * Data returned if @e us is #SYNC_US_NOT_MODIFIED. - */ - struct - { - - /** - * Hash of the synchronized backup. - */ - const struct GNUNET_HashCode *curr_backup_hash; - - } not_modified; - - /** * Previous backup. Returned if @e us is * #SYNC_US_CONFLICTING_BACKUP */ diff --git a/src/lib/sync_api_upload.c b/src/lib/sync_api_upload.c @@ -109,7 +109,7 @@ handle_upload_finished (void *cls, break; case MHD_HTTP_NOT_MODIFIED: ud.us = SYNC_US_SUCCESS; - ud.details.not_modified.curr_backup_hash = &uo->new_upload_hash; + ud.details.success.curr_backup_hash = &uo->new_upload_hash; ud.ec = TALER_EC_NONE; break; case MHD_HTTP_BAD_REQUEST: