Minor change

This commit is contained in:
Alexey Milovidov 2021-08-25 02:56:14 +03:00
parent 848c2ec23e
commit 384b4304c0
2 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public:
size_t offset = 0;
size_t size = 0;
char * buf = nullptr;
int priority = 0;
int64_t priority = 0;
};
/// Less than requested amount of data can be returned.

View File

@ -110,6 +110,7 @@ public:
else if (errno == EAGAIN)
{
/// Data is not available.
std::cerr << "miss\n";
break;
}
else if (errno == EINTR)
@ -133,6 +134,7 @@ public:
if (bytes_read)
{
std::cerr << "hit\n";
promise.set_value(bytes_read);
return future;
}