Skip to content

Commit

Permalink
Instantiate revision value
Browse files Browse the repository at this point in the history
n.b. This is needed to avoid an AppleClang 14 compilation errors, which doesn't allow to bind with reference to 'value'
  • Loading branch information
marcosbento committed Apr 25, 2024
1 parent d0ed0d0 commit c27f9a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/aviso/src/aviso/ListenService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ void ListenService::operator()(const std::chrono::system_clock::time_point& now)
// Pass updated keys to the listener
for (auto&& [key, value] : updated_keys) {
if (key == "latest_revision") {
ALOG(D, "Updating revision for " << entry.path() << " to " << value);
auto revision = value;
ALOG(D, "Updating revision for " << entry.path() << " to " << revision);
entry.listener().update_revision(std::stoll(value));
ALOG(D, "Revision for " << entry.path() << " is now " << entry.listener().revision());
continue;
Expand Down

0 comments on commit c27f9a6

Please sign in to comment.