communication: adapt to API changes in PSync
Pass the KeyChain instance to psync::FullProducer
Change-Id: Ia97356dc364c7bdaf6dc80ad57fa351eeabe997d
diff --git a/src/conf-parameter.hpp b/src/conf-parameter.hpp
index aedffac..32b343c 100644
--- a/src/conf-parameter.hpp
+++ b/src/conf-parameter.hpp
@@ -35,19 +35,17 @@
namespace nlsr {
+enum class SyncProtocol {
+ CHRONOSYNC,
+ PSYNC,
+};
+
enum {
LSA_REFRESH_TIME_MIN = 240,
LSA_REFRESH_TIME_DEFAULT = 1800,
LSA_REFRESH_TIME_MAX = 7200
};
-enum SyncProtocol {
-#ifdef HAVE_CHRONOSYNC
- SYNC_PROTOCOL_CHRONOSYNC,
-#endif
- SYNC_PROTOCOL_PSYNC
-};
-
enum {
LSA_INTEREST_LIFETIME_MIN = 1,
LSA_INTEREST_LIFETIME_DEFAULT = 4,
@@ -528,7 +526,7 @@
ndn::time::milliseconds m_syncInterestLifetime;
- SyncProtocol m_syncProtocol;
+ SyncProtocol m_syncProtocol = SyncProtocol::PSYNC;
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
// must be incremented when breaking changes are made to sync