Skip to content

Commit

Permalink
Assuring non-null ID on TimeoutGuard (#271, #290)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Oct 8, 2023
1 parent fa42488 commit 7983d71
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ Flux<Signal<Double, Void>> guarded(Flux<Signal<Double, Void>> in, SensorConfig c
return in;
}

return new TimeoutGuard<Double, Void>(cf.id(), t, true).compute(in);
var id = Optional.ofNullable(cf.id()).orElse(cf.address());

return new TimeoutGuard<Double, Void>(id, t, true).compute(in);
}

/**
Expand Down

0 comments on commit 7983d71

Please sign in to comment.