summaryrefslogtreecommitdiff
path: root/src/repoList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repoList.cpp')
-rw-r--r--src/repoList.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/repoList.cpp b/src/repoList.cpp
index 7a69b78..8c5b8a9 100644
--- a/src/repoList.cpp
+++ b/src/repoList.cpp
@@ -7,11 +7,12 @@
#include <Ice/Proxy.h>
#include <compileTimeFormatter.h>
#include <exceptions.h>
+#include <iostream>
#include <memory>
#include <utility>
#include <volume.h>
-GitFS::RepoList::RepoList(Ice::PropertiesPtr && p) : properties(std::move(p)) { }
+GitFS::RepoList::RepoList(Ice::PropertiesPtr props) : properties(std::move(props)) { }
AdHocFormatter(RepoPropertyName, "GitFS.%?.%?");
@@ -38,6 +39,8 @@ GitFS::RepoList::connect(const ::std::string volume, const ::std::string auth, c
NetFS::SettingsPtr
GitFS::RepoList::getSettings(const ::Ice::Current & ice)
{
+ constexpr int DEFAULT_MAX_MESSAGE_SIZE = 1024;
const auto props = ice.adapter->getCommunicator()->getProperties();
- return std::make_shared<NetFS::Settings>(props->getPropertyAsIntWithDefault("Ice.MessageSizeMax", 1024));
+ return std::make_shared<NetFS::Settings>(
+ props->getPropertyAsIntWithDefault("Ice.MessageSizeMax", DEFAULT_MAX_MESSAGE_SIZE));
}