From b2a136c6ff5b8351917f2d2356b08dc8ffc2968c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Hanuszczak?= Date: Thu, 31 Oct 2024 12:07:15 -0700 Subject: [PATCH] Reorder digest algorithms proto message fields. This is safe because the code is not deployed anywhere yet. --- proto/rrg/action/get_file_metadata.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proto/rrg/action/get_file_metadata.proto b/proto/rrg/action/get_file_metadata.proto index 6dfcf0d9..b87ef484 100644 --- a/proto/rrg/action/get_file_metadata.proto +++ b/proto/rrg/action/get_file_metadata.proto @@ -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 { @@ -81,7 +81,7 @@ 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. // @@ -89,5 +89,5 @@ message Result { // and `sha256` argument was provided. // // [1]: https://en.wikipedia.org/wiki/SHA-2 - bytes sha256 = 6; + bytes sha256 = 7; }