summaryrefslogtreecommitdiff
path: root/src/repoList.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-08-16 16:29:06 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-08-16 16:29:06 +0100
commit0d97553a5e1d91edfc325f1d9f5cf8c8bdd6a496 (patch)
treea5869036a4b8109f7db71f8e3970d646622e5e8c /src/repoList.cpp
parentUpdate branch names from master to main (diff)
downloadnetfs-gitfs-0d97553a5e1d91edfc325f1d9f5cf8c8bdd6a496.tar.bz2
netfs-gitfs-0d97553a5e1d91edfc325f1d9f5cf8c8bdd6a496.tar.xz
netfs-gitfs-0d97553a5e1d91edfc325f1d9f5cf8c8bdd6a496.zip
Fix-up all the clang-tidy warnings
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));
}