Skip to content

Commit

Permalink
update new neighbor on its creation too
Browse files Browse the repository at this point in the history
  • Loading branch information
astibal committed Apr 22, 2024
1 parent 69128e0 commit 631b01a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/proxy/nbrhood.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ class NbrHood {
nbr.value()->update();
}
else {
cache().put_ul(hostname, std::make_shared<Neighbor>(hostname));
auto ptr = std::make_shared<Neighbor>(hostname);
ptr->update();
cache().put_ul(hostname, ptr);
sx::http::webhooks::neighbor_new(hostname);
}
}
Expand Down

0 comments on commit 631b01a

Please sign in to comment.