Refactoring

- Skip calling time(nullptr) twice
- Use getter method for m_api instead of exposing it
- Moved api_udate_*() back to private since they're not used anywhere else
This commit is contained in:
SChernykh
2021-10-04 10:28:56 +02:00
parent a0a31b0f3b
commit 52e5008bf4
4 changed files with 21 additions and 30 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ void p2pool_api::dump_to_file_async_internal(const Category& category, const cha
case Category::GLOBAL: path = m_apiPath + filename; break;
case Category::NETWORK: path = m_networkPath + filename; break;
case Category::POOL: path = m_poolPath + filename; break;
case Category::LOCAL: path = m_localPath + filename; break;
case Category::LOCAL: path = m_localPath + filename; break;
}
{