From 74e66eee575d9f055ab0658e51ac1f6cda24f070 Mon Sep 17 00:00:00 2001 From: shuiyisong Date: Mon, 20 May 2024 14:55:18 +0800 Subject: [PATCH] chore: remove unused code --- src/servers/src/error.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/servers/src/error.rs b/src/servers/src/error.rs index 67bdb92cce42..375206d33707 100644 --- a/src/servers/src/error.rs +++ b/src/servers/src/error.rs @@ -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)] @@ -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,