From a511d2d1ef5fa07dde601961fe9394b474aad5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 24 Apr 2021 21:20:25 +0200 Subject: Behavior lens for shared refs from local state --- include/erebos/sync.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/erebos/sync.h') 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 #include +#include 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 &); + void localStateWatcher(const vector &); const class Server * server; - std::mutex headMutex; - std::optional> watchedHead; + std::optional>> watchedLocal; }; } -- cgit v1.2.3