summaryrefslogtreecommitdiff
path: root/include/erebos/sync.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erebos/sync.h')
-rw-r--r--include/erebos/sync.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/erebos/sync.h b/include/erebos/sync.h
index 1ab927d..662a558 100644
--- a/include/erebos/sync.h
+++ b/include/erebos/sync.h
@@ -15,19 +15,17 @@ using std::vector;
class SyncService : public Service
{
public:
- SyncService();
+ SyncService(Config &&, const Server &);
virtual ~SyncService();
UUID uuid() const override;
void handle(Context &) override;
- void serverStarted(const class Server &) override;
-
private:
void peerWatcher(size_t, const class Peer *);
void localStateWatcher(const vector<Ref> &);
- const class Server * server;
+ const Server & server;
Watched<vector<Ref>> watchedLocal;
};