Skip to content

Commit b408b9e

Browse files
committed
feat: Added disabled_with_options constructor to client
1 parent 0ff8905 commit b408b9e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/client/real.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,13 @@ impl Client {
240240
/// A disabled client can be detected by inspecting the DSN. If the DSN is `None` then
241241
/// the client is disabled.
242242
pub fn disabled() -> Client {
243+
Client::disabled_with_options(Default::default())
244+
}
245+
246+
/// Creates a new client that does not send anything with custom options.
247+
pub fn disabled_with_options(options: ClientOptions) -> Client {
243248
Client {
244-
options: Default::default(),
249+
options: options,
245250
transport: None,
246251
}
247252
}

0 commit comments

Comments
 (0)