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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/erebos/sync.h b/include/erebos/sync.h
index 0b9ed9a..dad4e0e 100644
--- a/include/erebos/sync.h
+++ b/include/erebos/sync.h
@@ -6,9 +6,12 @@
#include <optional>
#include <mutex>
+#include <vector>
namespace erebos {
+using std::vector;
+
class SyncService : public Service
{
public:
@@ -22,11 +25,10 @@ public:
private:
void peerWatcher(size_t, const class Peer *);
- void localStateWatcher(const Head<LocalState> &);
+ void localStateWatcher(const vector<Ref> &);
const class Server * server;
- std::mutex headMutex;
- std::optional<WatchedHead<LocalState>> watchedHead;
+ std::optional<Watched<vector<Ref>>> watchedLocal;
};
}