diff --git a/sdk/couchbase-core/src/memdx/error.rs b/sdk/couchbase-core/src/memdx/error.rs index 4bd604e7..38e0b090 100644 --- a/sdk/couchbase-core/src/memdx/error.rs +++ b/sdk/couchbase-core/src/memdx/error.rs @@ -1,5 +1,4 @@ use serde::Deserialize; -use std::backtrace::Backtrace; use std::error::Error as StdError; use std::fmt::{Display, Formatter, Pointer}; use std::io; @@ -19,7 +18,6 @@ pub struct Error { /// A larger `Error` type was substantially slower due to all the functions /// that pass around `Result`. pub kind: Box, - pub backtrace: Backtrace, pub source: Option>, } @@ -27,7 +25,6 @@ impl Error { pub(crate) fn protocol_error(msg: impl Into) -> Self { Self { kind: Box::new(ErrorKind::Protocol { msg: msg.into() }), - backtrace: Backtrace::capture(), source: None, } } @@ -38,7 +35,6 @@ impl Error { ) -> Self { Self { kind: Box::new(ErrorKind::Protocol { msg: msg.into() }), - backtrace: Backtrace::capture(), source: Some(source), } } @@ -49,7 +45,6 @@ impl Error { msg: msg.into(), arg: arg.into(), }), - backtrace: Backtrace::capture(), source: None, } } @@ -64,7 +59,6 @@ impl Error { msg: msg.into(), arg: arg.into(), }), - backtrace: Backtrace::capture(), source: Some(source), } } @@ -75,7 +69,6 @@ impl Error { ) -> Self { Error { kind: Box::new(ErrorKind::ConnectionFailed { msg: reason.into() }), - backtrace: Backtrace::capture(), source: Some(source), } } @@ -87,7 +80,6 @@ impl Error { ) -> Self { Error { kind: Box::new(ErrorKind::Dispatch { opaque, op_code }), - backtrace: Backtrace::capture(), source: Some(source), } } @@ -95,7 +87,6 @@ impl Error { pub(crate) fn close_error(msg: String, source: Box) -> Self { Error { kind: Box::new(ErrorKind::Close { msg }), - backtrace: Backtrace::capture(), source: Some(source), } } @@ -502,7 +493,6 @@ where fn from(err: E) -> Self { Self { kind: Box::new(err.into()), - backtrace: Backtrace::capture(), source: None, } } @@ -512,7 +502,6 @@ impl From for Error { fn from(value: ServerError) -> Self { Self { kind: Box::new(ErrorKind::Server(value)), - backtrace: Backtrace::capture(), source: None, } } @@ -524,7 +513,6 @@ impl From for Error { kind: Box::new(ErrorKind::UnknownIo { msg: value.to_string(), }), - backtrace: Backtrace::capture(), source: Some(Box::new(value)), } } diff --git a/sdk/couchbase-core/src/scram/mod.rs b/sdk/couchbase-core/src/scram/mod.rs index 5da7128c..c6402932 100644 --- a/sdk/couchbase-core/src/scram/mod.rs +++ b/sdk/couchbase-core/src/scram/mod.rs @@ -4,7 +4,6 @@ use hmac::digest::KeyInit; use hmac::Mac; use rand::RngCore; use sha2::Digest; -use std::backtrace::Backtrace; use std::error::Error; use std::marker::PhantomData; use std::str; @@ -223,7 +222,6 @@ where pub struct ScramError { message: String, source: Option>, - backtrace: Backtrace, } impl ScramError { @@ -231,7 +229,6 @@ impl ScramError { ScramError { message: message.into(), source: None, - backtrace: Backtrace::capture(), } } @@ -239,7 +236,6 @@ impl ScramError { ScramError { message: message.into(), source: Some(source), - backtrace: Backtrace::capture(), } } } diff --git a/sdk/couchbase-core/src/searchx/search_respreader.rs b/sdk/couchbase-core/src/searchx/search_respreader.rs index fdb3f913..ee145e27 100644 --- a/sdk/couchbase-core/src/searchx/search_respreader.rs +++ b/sdk/couchbase-core/src/searchx/search_respreader.rs @@ -9,7 +9,6 @@ use bytes::Bytes; use futures::{FutureExt, Stream, StreamExt}; use http::StatusCode; use log::debug; -use std::backtrace::Backtrace; use std::collections::HashMap; use std::pin::Pin; use std::sync::Arc; diff --git a/sdk/couchbase-core/tests/common/test_config.rs b/sdk/couchbase-core/tests/common/test_config.rs index 1533b0f1..e60535f2 100644 --- a/sdk/couchbase-core/tests/common/test_config.rs +++ b/sdk/couchbase-core/tests/common/test_config.rs @@ -18,7 +18,7 @@ pub struct EnvTestConfig { pub username: String, #[envconfig(from = "RCBPASSWORD", default = "password")] pub password: String, - #[envconfig(from = "RCBCONNSTR", default = "couchbase://192.168.107.129")] + #[envconfig(from = "RCBCONNSTR", default = "couchbase://192.168.107.19")] pub conn_string: String, #[envconfig(from = "RCBBUCKET", default = "default")] pub default_bucket: String,