Skip to content

Commit 363f6ad

Browse files
committed
Allow flushing telemetry without a mutable reference
1 parent f61018e commit 363f6ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/utils/re_perf_telemetry/src/telemetry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub enum TelemetryDropBehavior {
4747
}
4848

4949
impl Telemetry {
50-
pub fn flush(&mut self) {
50+
pub fn flush(&self) {
5151
let Self {
5252
logs,
5353
traces,
@@ -75,7 +75,7 @@ impl Telemetry {
7575
}
7676
}
7777

78-
pub fn shutdown(&mut self) {
78+
pub fn shutdown(&self) {
7979
// NOTE: We do both `force_flush` and `shutdown` because, even though they both flush the
8080
// pipeline, sometimes one has better error messages than the other (although, more often
8181
// than not, they both provide useless errors and you should make sure to look into the

0 commit comments

Comments
 (0)