Work in progress

parent f7ff69cb
......@@ -27,7 +27,7 @@ namespace github {
EventSource::EventSource(std::string name)
: name_(std::move(name))
: name_(std::move(name)), PushReceiver(name, {}, name)
{
if ( melanobot::has_storage() )
{
......
......@@ -20,6 +20,7 @@
#define MELANOBOT_MODULE_GITHUB_CONTROLLER_HPP
#include "network/async_service.hpp"
#include "web/server/push_pages.hpp"
#include "github-listeners.hpp"
#include "event_source.hpp"
......@@ -29,7 +30,7 @@ namespace github {
/**
* \brief Single instance of a github connection
*/
class GitHubController : public AsyncService
class GitHubController : public AsyncService, public web::PushReceiver
{
public:
explicit GitHubController(httpony::Auth auth = {}, std::string api_url = "https://api.github.com")
......
......@@ -39,7 +39,6 @@
class AsyncService
{
public:
virtual ~AsyncService()
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment