Skip to content

Commit 42b69d2

Browse files
committed
fix more nits
1 parent 8ed80dc commit 42b69d2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
#[cfg(feature = "genproto")]
1515
fn generate_protos() {
1616
download_file(
17-
"https://raw.githubusercontent.com/lightningdevkit/vss-server/d8991673f572408b7ea6a62627d9d30f03266876/app/src/main/proto/vss.proto",
17+
"https://raw.githubusercontent.com/lightningdevkit/vss-server/62e888e1bd3305d23b15da857edffaf527163048/app/src/main/proto/vss.proto",
1818
"src/proto/vss.proto",
1919
).unwrap();
2020

src/types.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ pub struct GetObjectRequest {
1010
/// Authorization and billing can also be performed at the `store_id` level.
1111
#[prost(string, tag = "1")]
1212
pub store_id: ::prost::alloc::string::String,
13-
/// `Key` for which the value is to be fetched.
13+
/// The key of the value to be fetched.
1414
///
15-
/// If the specified `key` does not exist, returns `ErrorResponse` with `NO_SUCH_KEY_EXCEPTION` as
16-
/// `ErrorCode`.
15+
/// If the specified `key` does not exist, returns `ErrorCode.NO_SUCH_KEY_EXCEPTION` in the
16+
/// the `ErrorResponse`.
1717
///
1818
/// Consistency Guarantee:
1919
/// Get(read) operations against a `key` are consistent reads and will reflect all previous writes,
@@ -290,18 +290,18 @@ pub struct KeyValue {
290290
pub enum ErrorCode {
291291
/// Default protobuf Enum value. Will not be used as `ErrorCode` by server.
292292
Unknown = 0,
293-
/// CONFLICT_EXCEPTION is used when the request contains mismatched version (either key or global)
293+
/// Used when the request contains mismatched version (either key or global)
294294
/// in `PutObjectRequest`. For more info refer `PutObjectRequest`.
295295
ConflictException = 1,
296-
/// INVALID_REQUEST_EXCEPTION is used in the following cases:
296+
/// Used in the following cases:
297297
/// - The request was missing a required argument.
298298
/// - The specified argument was invalid, incomplete or in the wrong format.
299299
/// - The request body of api cannot be deserialized into corresponding protobuf object.
300300
InvalidRequestException = 2,
301-
/// An internal server error occurred, client is probably at no fault and can safely retry this
302-
/// error with exponential backoff.
301+
/// Used when an internal server error occurred, client is probably at no fault and can safely retry
302+
/// this error with exponential backoff.
303303
InternalServerException = 3,
304-
/// NO_SUCH_KEY_EXCEPTION is used when the specified `key` in a `GetObjectRequest` does not exist.
304+
/// Used when the specified `key` in a `GetObjectRequest` does not exist.
305305
NoSuchKeyException = 4,
306306
}
307307
impl ErrorCode {

0 commit comments

Comments
 (0)