0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-18 09:40:12 +01:00

modules/media/media: Minor cleanup.

This commit is contained in:
Jason Volk 2019-04-10 21:17:55 -07:00
parent 0b8725953e
commit 6fbf2e082b

View file

@ -313,11 +313,9 @@ download(const mutable_buffer &head_buf,
};
//TODO: --- This should use the progress callback to build blocks
// Null content buffer will cause dynamic allocation internally.
const mutable_buffer in_content{};
server::request remote_request
{
remote, { out_head }, { in_head, in_content }, opts
remote, { out_head }, { in_head, {} }, opts
};
if(!remote_request.wait(seconds(media_download_timeout), std::nothrow))