drop redundant param in dispatcher constructor
diff --git a/src/dispatcher.cc b/src/dispatcher.cc
index c768d88..babae92 100644
--- a/src/dispatcher.cc
+++ b/src/dispatcher.cc
@@ -34,10 +34,11 @@
static const string BROADCAST_DOMAIN = "/ndn/broadcast/chronoshare";
-Dispatcher::Dispatcher(const filesystem::path &path, const std::string &localUserName,
- const std::string &sharedFolder,
- const filesystem::path &rootDir, Ccnx::CcnxWrapperPtr ccnx,
- int poolSize)
+Dispatcher::Dispatcher(const std::string &localUserName
+ , const std::string &sharedFolder
+ , const filesystem::path &rootDir
+ , Ccnx::CcnxWrapperPtr ccnx
+ , int poolSize)
: m_ccnx(ccnx)
, m_core(NULL)
, m_rootDir(rootDir)
@@ -47,8 +48,8 @@
, m_sharedFolder(sharedFolder)
, m_server(NULL)
{
- m_syncLog = make_shared<SyncLog>(path, localUserName);
- m_actionLog = make_shared<ActionLog>(m_ccnx, path, m_syncLog, sharedFolder,
+ m_syncLog = make_shared<SyncLog>(m_rootDir, localUserName);
+ m_actionLog = make_shared<ActionLog>(m_ccnx, m_rootDir, m_syncLog, sharedFolder,
// bind (&Dispatcher::Did_ActionLog_ActionApply_AddOrModify, this, _1, _2, _3, _4, _5, _6, _7),
ActionLog::OnFileAddedOrChangedCallback (), // don't really need this callback
bind (&Dispatcher::Did_ActionLog_ActionApply_Delete, this, _1));
diff --git a/src/dispatcher.h b/src/dispatcher.h
index 769723e..c2309b6 100644
--- a/src/dispatcher.h
+++ b/src/dispatcher.h
@@ -46,9 +46,11 @@
public:
// sharedFolder is the name to be used in NDN name;
// rootDir is the shared folder dir in local file system;
- Dispatcher(const boost::filesystem::path &path, const std::string &localUserName,
- const std::string &sharedFolder, const boost::filesystem::path &rootDir,
- Ccnx::CcnxWrapperPtr ccnx, int poolSize = 2);
+ Dispatcher(const std::string &localUserName
+ , const std::string &sharedFolder
+ , const boost::filesystem::path &rootDir
+ , Ccnx::CcnxWrapperPtr ccnx
+ , int poolSize = 2);
~Dispatcher();
// ----- Callbacks, they only submit the job to executor and immediately return so that event processing thread won't be blocked for too long -------