#pragma once #include #include #include #include #include #include namespace erebos { using std::vector; class SyncService : public Service { public: SyncService(Config &&, const Server &); virtual ~SyncService(); UUID uuid() const override; void handle(Context &) override; private: void peerWatcher(size_t, const class Peer *); void localStateWatcher(const vector &); const Server & server; Watched> watchedLocal; }; }