Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
shuiyisong committed May 20, 2024
1 parent 02b0231 commit 74e66ee
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/servers/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,13 +417,6 @@ pub enum Error {
location: Location,
},

#[snafu(display("Unsupported gRPC compression encoding: {}", encoding))]
UnsupportedGrpcCompressionEncoding {
encoding: String,
#[snafu(implicit)]
location: Location,
},

#[snafu(display("Failed to build HTTP response"))]
BuildHttpResponse {
#[snafu(source)]
Expand Down Expand Up @@ -606,9 +599,7 @@ impl ErrorExt for Error {
| Arrow { .. }
| FileWatch { .. } => StatusCode::Internal,

UnsupportedDataType { .. } | UnsupportedGrpcCompressionEncoding { .. } => {
StatusCode::Unsupported
}
UnsupportedDataType { .. } => StatusCode::Unsupported,

#[cfg(not(windows))]
UpdateJemallocMetrics { .. } => StatusCode::Internal,
Expand Down

0 comments on commit 74e66ee

Please sign in to comment.