Skip to content

Commit dbb7716

Browse files
author
Eric Fu
committed
fix compile error
1 parent 51f4d1f commit dbb7716

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stream/src/task/barrier_manager/managed_state.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ impl ManagedBarrierState {
8787
fn may_notify(&mut self, curr_epoch: u64) {
8888
// Report if there's progress on the earliest in-flight barrier.
8989
if self.epoch_barrier_state_map.keys().next() == Some(&curr_epoch) {
90-
GLOBAL_STREAMING_METRICS.barrier_manager_progress.inc();
90+
if let Some(metrics) = GLOBAL_STREAMING_METRICS.get() {
91+
metrics.barrier_manager_progress.inc();
92+
}
9193
}
9294

9395
while let Some(entry) = self.epoch_barrier_state_map.first_entry() {

0 commit comments

Comments
 (0)