aboutsummaryrefslogtreecommitdiff
path: root/db/mongo_access.cpp
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-09-09 17:17:44 +0200
committerneodarz <neodarz@neodarz.net>2019-09-09 17:17:44 +0200
commitbc6aeaa834d666221171d302d4f101ce65608898 (patch)
tree9fecfeb46e4189fb4baebf7f1bd1fb1277b36631 /db/mongo_access.cpp
parent5b66830ca806e00f415d6ee83b15e410130de371 (diff)
downloadumosapicpp-bc6aeaa834d666221171d302d4f101ce65608898.tar.xz
umosapicpp-bc6aeaa834d666221171d302d4f101ce65608898.zip
Refactoring some code to be more readable
Diffstat (limited to '')
-rw-r--r--db/mongo_access.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/db/mongo_access.cpp b/db/mongo_access.cpp
index 56936f3..a19488e 100644
--- a/db/mongo_access.cpp
+++ b/db/mongo_access.cpp
@@ -1,9 +1,9 @@
#include "mongo_access.h"
-mongo_access::mongo_access(void) {};
-mongo_access::~mongo_access(void) {};
+UmosapiService::mongo_access::mongo_access(void) {};
+UmosapiService::mongo_access::~mongo_access(void) {};
-void mongo_access::configure(mongocxx::uri uri) {
+void UmosapiService::mongo_access::configure(mongocxx::uri uri) {
class noop_logger : public mongocxx::logger {
public:
virtual void operator()(mongocxx::log_level,
@@ -11,6 +11,6 @@ void mongo_access::configure(mongocxx::uri uri) {
bsoncxx::stdx::string_view) noexcept {}
};
- _pool = bsoncxx::stdx::make_unique<mongocxx::pool>(std::move(uri));
- _instance = bsoncxx::stdx::make_unique<mongocxx::instance>(bsoncxx::stdx::make_unique<noop_logger>());
+ UmosapiService::mongo_access::_pool = bsoncxx::stdx::make_unique<mongocxx::pool>(std::move(uri));
+ UmosapiService::mongo_access::_instance = bsoncxx::stdx::make_unique<mongocxx::instance>(bsoncxx::stdx::make_unique<noop_logger>());
}