Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmolle committed Oct 27, 2023
1 parent c9f33d0 commit 96fb807
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/hostcalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -703,27 +703,6 @@ extern "C" {
) -> Status;
}

#[allow(dead_code)]
enum GrpcStatucCode {
Ok = 0,
Cancelled = 1,
Unknown = 2,
InvalidArgument= 3,
DeadlineExceeded = 4,
NotFound = 5,
AlreadyExists = 6,
PermissionDenied = 7,
ResourceExhausted = 8,
FailedPrecondition = 9,
Aborted = 10,
OutOfRange = 11,
Uninmplemented = 12,
Internal = 13,
Unavailable = 14,
DataLoss = 15,
Unauthenticated = 16,
}

fn http_to_grpc_status_code(status_code: u32) -> i32 {
match status_code {
200 => GrpcStatucCode::Ok as i32,
Expand Down
21 changes: 21 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,24 @@ pub enum MetricType {
}

pub type Bytes = Vec<u8>;

#[allow(dead_code)]
enum GrpcStatucCode {
Ok = 0,
Cancelled = 1,
Unknown = 2,
InvalidArgument = 3,
DeadlineExceeded = 4,
NotFound = 5,
AlreadyExists = 6,
PermissionDenied = 7,
ResourceExhausted = 8,
FailedPrecondition = 9,
Aborted = 10,
OutOfRange = 11,
Uninmplemented = 12,
Internal = 13,
Unavailable = 14,
DataLoss = 15,
Unauthenticated = 16,
}

0 comments on commit 96fb807

Please sign in to comment.