Rename sendEvent
There are currently 3 function prototypes that hold the name
"sendEvent". This makes them hard to search for, and even though they
take different arguments, and are attached to different classes, they're
still difficult to trace.
Rename two of the classes.
Tested: Code compiles. Rename only.
Change-Id: I5df9c690ba0ca8ebe19c73fc0848e9c3ef4d52f7
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/http/server_sent_event.hpp b/http/server_sent_event.hpp
index 76d10c0..906c326 100644
--- a/http/server_sent_event.hpp
+++ b/http/server_sent_event.hpp
@@ -32,7 +32,7 @@
virtual boost::asio::io_context& getIoContext() = 0;
virtual void close(std::string_view msg = "quit") = 0;
- virtual void sendEvent(std::string_view id, std::string_view msg) = 0;
+ virtual void sendSseEvent(std::string_view id, std::string_view msg) = 0;
};
template <typename Adaptor>
@@ -189,7 +189,7 @@
doWrite();
}
- void sendEvent(std::string_view id, std::string_view msg) override
+ void sendSseEvent(std::string_view id, std::string_view msg) override
{
if (msg.empty())
{