Skip to content

Commit 610034d

Browse files
committed
fix: forgot usage of SessionFlusher
1 parent ccbfca1 commit 610034d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

sentry-core/src/client.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,14 @@ impl Client {
135135
sdk_info.integrations.push(integration.name().to_string());
136136
}
137137

138-
let session_flusher = RwLock::new(Some(SessionFlusher::new(
139-
transport.clone(),
140-
options.session_mode,
141-
)));
138+
let session_flusher = if cfg!(feature = "release-health") {
139+
RwLock::new(Some(SessionFlusher::new(
140+
transport.clone(),
141+
options.session_mode,
142+
)))
143+
} else {
144+
RwLock::new(None)
145+
};
142146

143147
Client {
144148
options,

0 commit comments

Comments
 (0)