Commit 49e05252 authored by groot's avatar groot
Browse files

fix jenkins build error


Former-commit-id: 4799f1b32a26eaf854d8e72b83021900d3160199
parent 30cbd8f3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@

#include "server/utils.h"

#include <fstream>
#include <iostream>
#include <thread>
#include <string>
@@ -67,12 +68,11 @@ static const char* INVALID_CONFIG_STR = "*INVALID*";

void
WriteToFile(const char* file_path, const char* content) {
    boost::filesystem::path fpath(file_path);
    boost::filesystem::fstream fstream(fpath, std::ios_base::out);
    std::fstream fs(file_path, std::ios_base::out);

    //write data to file
    fstream << content;
    fstream.close();
    fs << content;
    fs.close();
}

} // namespace