Update return types in ofi::Socket

This commit is contained in:
Alexey Rybalchenko 2020-09-23 09:09:17 +02:00
parent 35c7959c53
commit 1b30f3ac14

View File

@ -284,7 +284,7 @@ try {
return size;
} catch (const std::exception& e) {
LOG(error) << e.what();
return TransferResult::error;
return static_cast<int64_t>(TransferResult::error);
}
auto Socket::SendQueueReader() -> void
@ -431,7 +431,7 @@ try {
return size;
} catch (const std::exception& e) {
LOG(error) << e.what();
return TransferResult::error;
return static_cast<int>(TransferResult::error);
}
auto Socket::Receive(std::vector<MessagePtr>& msgVec, const int /*timeout*/) -> int64_t
@ -456,7 +456,7 @@ try {
return size;
} catch (const std::exception& e) {
LOG(error) << e.what();
return TransferResult::error;
return static_cast<int64_t>(TransferResult::error);
}
auto Socket::RecvControlQueueReader() -> void