diff --git a/libs/libzkutil/include/zkutil/Increment.h b/libs/libzkutil/include/zkutil/Increment.h index 5cd8f02316c4dfa9cb08c3b9923550d449f963f8..37b698d0290fd24829ca28277552193f3ff06001 100644 --- a/libs/libzkutil/include/zkutil/Increment.h +++ b/libs/libzkutil/include/zkutil/Increment.h @@ -2,13 +2,13 @@ #include -namespace zkutil +namespace zkutil { class Increment { public: - Increment(ZooKeeperPtr zk_, const std::string & path_) + Increment(ZooKeeperPtr zk_, const std::string & path_) : zk(zk_), path(path_) { zk->createAncestors(path); @@ -34,8 +34,8 @@ public: { success = zk->tryCreate(path, std::to_string(result), zkutil::CreateMode::Persistent) == ZOK; } - } - while(!success); + } + while (!success); return result; } @@ -45,4 +45,4 @@ private: Logger * log = &Logger::get("zkutil::Increment"); }; -} \ No newline at end of file +}