comparison OrthancServer/Scheduler/StorePeerCommand.cpp @ 2124:2b1520efa282

cleaning up
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Nov 2016 12:11:34 +0100
parents a0bd8cd55da7
children a3a65de1840f
comparison
equal deleted inserted replaced
2123:1cf093cbdad8 2124:2b1520efa282
60 LOG(INFO) << "Sending resource " << *it << " to peer \"" 60 LOG(INFO) << "Sending resource " << *it << " to peer \""
61 << peer_.GetUrl() << "\""; 61 << peer_.GetUrl() << "\"";
62 62
63 try 63 try
64 { 64 {
65 context_.ReadFile(client.GetBody(), *it, FileContentType_Dicom); 65 context_.ReadDicom(client.GetBody(), *it);
66 66
67 std::string answer; 67 std::string answer;
68 if (!client.Apply(answer)) 68 if (!client.Apply(answer))
69 { 69 {
70 LOG(ERROR) << "Unable to send resource " << *it << " to peer \"" << peer_.GetUrl() << "\""; 70 LOG(ERROR) << "Unable to send resource " << *it << " to peer \"" << peer_.GetUrl() << "\"";