Commit a68e979e authored by David Auer's avatar David Auer
Browse files

Fix for rename util, utils

parent 0d7d7279
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -17,9 +17,11 @@
#include <vector>
#include <string>

namespace gkfs::util {
namespace gkfs::utils {

std::vector<std::pair<std::string, std::string>>
load_hostfile(const std::string& path);
} // namespace gkfs::util

} // namespace gkfs::utils

#endif // GEKKOFS_HOSTSFILE_UTIL_HPP
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ read_hosts_file() {

    vector<pair<string, string>> hosts;
    try {
        hosts = gkfs::util::load_hostfile(hostfile);
        hosts = gkfs::utils::load_hostfile(hostfile);
    } catch(const exception& e) {
        auto emsg = fmt::format("Failed to load hosts file: {}", e.what());
        throw runtime_error(emsg);
+2 −2
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@

using namespace std;

namespace gkfs::util {
namespace gkfs::utils {

/**
 * Reads the daemon generator hosts file by a given path, returning hosts and
@@ -58,4 +58,4 @@ load_hostfile(const std::string& path) {
    }
    return hosts;
}
} // namespace gkfs::util
 No newline at end of file
} // namespace gkfs::utils