Skip to content
Snippets Groups Projects
Commit af376dd2 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix

parent b5240d6e
Branches
Tags
No related merge requests found
......@@ -21,10 +21,10 @@ Error RequestHandlerDbWrite::ProcessRequest(Request* request) const {
file_info.size = request->GetDataSize();
file_info.id = request->GetDataID();
Error err;
auto hostname = GetHostName(&err);
if (err) {
return err;
}
// auto hostname = GetHostName(&err);
// if (err) {
// return err;
// }
err = db_client__->Insert(file_info, true);
if (!err) {
log__->Debug(std::string{"insert record id "} + std::to_string(file_info.id) + " to " + kDBCollectionName + " in " +
......@@ -65,4 +65,4 @@ const std::string& RequestHandlerDbWrite::GetHostName(Error* err) const {
return hostname_;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment