diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-04-09 09:40:59 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-04-16 09:06:05 +0300 |
commit | 82ff782fe85c84c10f1f18c9bd5c2b017bc2f240 (patch) | |
tree | dee4767299a179067b9b54d557e96f95af88801c /src/chunker.rs | |
parent | d9b72ffa5485f3c253da22f09ff0a7090de7aa37 (diff) | |
download | obnam2-82ff782fe85c84c10f1f18c9bd5c2b017bc2f240.tar.gz |
feat! change how chunk labels are serialized
Serialized labels now start with a type prefix: a character that says
what type of label it is.
This isn't strictly required: we _can_ just decide to always use a
single type of checksum for all chunks in one backup, for one client,
or in the whole repository. However, if it's ever possible to have
more than one type, it helps debugging if every checksum, when
serialized, is explicit about its type.
Change things to use the new serialize method instead of the Display
trait for Label. We're primarily serializing labels so they can be
stored in a database, and used in URLs, only secondarily showing them
to users.
Sponsored-by: author
Diffstat (limited to 'src/chunker.rs')
0 files changed, 0 insertions, 0 deletions