mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Move a comment to the right place in tor_zstd_compress_process
Part of #22502
This commit is contained in:
parent
952c9073ad
commit
7605bd528e
@ -312,6 +312,8 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state,
|
||||
return TOR_COMPRESS_ERROR;
|
||||
}
|
||||
|
||||
// ZSTD_flushStream returns 0 if the frame is done, or >0 if it
|
||||
// is incomplete.
|
||||
if (retval > 0)
|
||||
return TOR_COMPRESS_BUFFER_FULL;
|
||||
}
|
||||
@ -339,8 +341,6 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state,
|
||||
|
||||
return TOR_COMPRESS_DONE;
|
||||
} else {
|
||||
// ZSTD_flushStream returns 0 if the frame is done, or >0 if it
|
||||
// is incomplete.
|
||||
return (retval == 0) ? TOR_COMPRESS_DONE : TOR_COMPRESS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user