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:
parent
0b8725953e
commit
6fbf2e082b
1 changed files with 1 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue