Skip to content

Commit

Permalink
Fix the example plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tobim committed May 4, 2021
1 parent 861f44e commit e62dd4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/plugins/example/example.cpp
Expand Up @@ -74,8 +74,8 @@ example(example_actor::stateful_pointer<example_actor_state> self) {
for (auto& [key, value] : config) {
if (key == "max-events") {
if (auto max_events = caf::get_if<integer>(&value)) {
VAST_VERBOSE("{} sets max-events to {}", self, *max_events);
self->state.max_events = *max_events;
VAST_VERBOSE("{} sets max-events to {}", self, max_events->value);
self->state.max_events = max_events->value;
}
}
}
Expand Down

0 comments on commit e62dd4f

Please sign in to comment.