From 7a59bd00928172ac98fef301e5650f0ba58a344d Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Wed, 3 Mar 2021 16:52:08 -0500 Subject: [PATCH] refactor: Remove unused error types --- src/influxdb_ioxd.rs | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/influxdb_ioxd.rs b/src/influxdb_ioxd.rs index c70822ee73..569b59fc85 100644 --- a/src/influxdb_ioxd.rs +++ b/src/influxdb_ioxd.rs @@ -23,18 +23,6 @@ pub enum Error { source: std::io::Error, }, - #[snafu(display("Unable to initialize database in directory {:?}: {}", db_dir, source))] - InitializingMutableBuffer { - db_dir: PathBuf, - source: Box, - }, - - #[snafu(display("Unable to restore WAL from directory {:?}: {}", dir, source))] - RestoringMutableBuffer { - dir: PathBuf, - source: Box, - }, - #[snafu(display( "Unable to bind to listen for HTTP requests on {}: {}", bind_addr, @@ -61,9 +49,6 @@ pub enum Error { #[snafu(display("Error serving RPC: {}", source))] ServingRPC { source: self::rpc::Error }, - #[snafu(display("Specifed {} for the object store, but not a bucket", object_store))] - InvalidCloudObjectStoreConfiguration { object_store: ObjStoreOpt }, - #[snafu(display( "Specifed {} for the object store, required configuration missing for {}", object_store, @@ -74,9 +59,9 @@ pub enum Error { missing: String, }, - #[snafu(display("Specified file for the object store, but not a database directory"))] - InvalidFileObjectStoreConfiguration, - + // Creating a new S3 object store can fail if the region is *specified* but + // not *parseable* as a rusoto `Region`. The other object store constructors + // don't return `Result`. #[snafu(display("Amazon S3 configuration was invalid: {}", source))] InvalidS3Config { source: object_store::aws::Error }, }