Allow to set file chunk size to the server.

This commit is contained in:
Chunting Gu
2019-08-05 10:45:18 +08:00
parent da6addc653
commit 1f4b6cac30
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ private:
// the memory.
class FileBody : public Body {
public:
explicit FileBody(const Path& path, std::size_t chunk_size = 1024);
FileBody(const Path& path, std::size_t chunk_size);
std::size_t GetSize() const override {
return size_;