revert workaround for file chunks

The client now uses fallocate() to store a single file.
master
tiptorrent development team 2021-12-23 18:40:14 +01:00
parent b18630a920
commit 298f9da0de
1 changed files with 0 additions and 6 deletions

View File

@ -103,9 +103,6 @@ int tip_client_state_process_payload(struct tip_client *cli)
switch (cli->method) { switch (cli->method) {
case TIP_METHOD_GET: case TIP_METHOD_GET:
case TIP_METHOD_POST: case TIP_METHOD_POST:
if (!redirect)
break;
/* skip checksum files. */ /* skip checksum files. */
if (strstr(uri, ".full.sum")) { if (strstr(uri, ".full.sum")) {
cli->checksum = true; cli->checksum = true;
@ -197,9 +194,6 @@ int tip_client_state_process_payload_reply(struct tip_client *cli)
switch (cli->method) { switch (cli->method) {
case TIP_METHOD_GET: case TIP_METHOD_GET:
if (!redirect)
break;
if (cli->chunk < 0) if (cli->chunk < 0)
break; break;