Skip to content

Commit

Permalink
Reorder digest algorithms proto message fields.
Browse files Browse the repository at this point in the history
This is safe because the code is not deployed anywhere yet.
  • Loading branch information
panhania committed Oct 31, 2024
1 parent 36a968e commit b2a136c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proto/rrg/action/get_file_metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ message Args {
// Supported only if the `action-get_file_metadata-sha1` feature is enabled.
//
// [1]: https://en.wikipedia.org/wiki/SHA-1
bool sha1 = 5;
bool sha1 = 4;

// Whether to collect [SHA-256 digest][2] of the file contents.
//
// Supported only if the `action-get_file_metadata-sha256` feature is enabled.
//
// [1]: https://en.wikipedia.org/wiki/SHA-2
bool sha256 = 4;
bool sha256 = 5;
}

message Result {
Expand Down Expand Up @@ -81,13 +81,13 @@ message Result {
// and `sha1` argument was provided.
//
// [1]: https://en.wikipedia.org/wiki/SHA-1
bytes sha1 = 7;
bytes sha1 = 6;

// [SHA-256 digest][1] of the file contents.
//
// Collected only if the `action-get_file_metadata-sha256` feature is enabled
// and `sha256` argument was provided.
//
// [1]: https://en.wikipedia.org/wiki/SHA-2
bytes sha256 = 6;
bytes sha256 = 7;
}

0 comments on commit b2a136c

Please sign in to comment.