Add event handler

This commit is contained in:
juju committed 2020-05-05 15:39:59 +02:00
1 parent b42378c261
commit f512de7313
20 files changed
+717 -14

No files matched your search

+3
View File
@@ -3,6 +3,8 @@
#include "legislator-factory.hh"
#include "socket/default-socket.hh"
#include "misc/addrinfo/addrinfo.hh"
#include "events/register.hh"
#include "events/listener.hh"
namespace paxos
{
@@ -67,6 +69,7 @@ namespace paxos
if (config.is_self)
{
shared_socket socket = prepare_socket(config);
event_register.register_event<ListenerEW>(socket);
}
return shared;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.