Revert "client code needs to call start() in order to start syncing"
This reverts commit 88916c2247731501bde0fb552862886638c9e222.
(Alex: SyncLogic automatically starts upon creation)
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index c8452dc..cd74f2b 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -48,7 +48,6 @@
m_ccnxHandle->setInterestFilter (syncPrefix,
bind (&SyncLogic::respondSyncInterest, this, _1));
- sendSyncInterest ();
m_scheduler.schedule (posix_time::seconds (4),
bind (&SyncLogic::sendSyncInterest, this),
REEXPRESSING_INTEREST);
@@ -62,7 +61,7 @@
void
SyncLogic::respondSyncInterest (const string &interest)
{
- // cout << "Respond Sync Interest" << endl;
+ //cout << "Respond Sync Interest" << endl;
string hash = interest.substr(interest.find_last_of("/") + 1);
DigestPtr digest = make_shared<Digest> ();
try
@@ -119,7 +118,7 @@
void
SyncLogic::processSyncData (const string &name, const string &dataBuffer)
{
- // cout << "Process Sync Data" <<endl;
+ //cout << "Process Sync Data" <<endl;
DiffStatePtr diffLog = make_shared<DiffState> ();
try
@@ -212,7 +211,7 @@
void
SyncLogic::processPendingSyncInterests (DiffStatePtr &diffLog)
{
- //cout << "Process Pending Interests" <<endl;
+ //cout << "Process Pending Interests" <<endl;
recursive_mutex::scoped_lock lock (m_stateMutex);
diffLog->setDigest(m_state.getDigest());
@@ -237,7 +236,7 @@
void
SyncLogic::addLocalNames (const string &prefix, uint32_t session, uint32_t seq)
{
- //cout << "Add local names" <<endl;
+ //cout << "Add local names" <<endl;
recursive_mutex::scoped_lock lock (m_stateMutex);
NameInfoConstPtr info = StdNameInfo::FindOrCreate(prefix);
SeqNo seqN(session, seq);
@@ -265,7 +264,7 @@
void
SyncLogic::sendSyncInterest ()
{
- // cout << "Sending Sync Interest" << endl;
+ //cout << "Sending Sync Interest" << endl;
recursive_mutex::scoped_lock lock (m_stateMutex);
ostringstream os;