mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
apply fmt updates
This commit is contained in:
parent
0f6eaa563c
commit
bba51e38e8
1 changed files with 4 additions and 4 deletions
|
|
@ -33,10 +33,10 @@ pub fn from_stream_async(
|
||||||
size.total += bytes.len();
|
size.total += bytes.len();
|
||||||
on_chunk(bytes.clone(), size.total);
|
on_chunk(bytes.clone(), size.total);
|
||||||
|
|
||||||
if let Some(limit) = size.limit {
|
if let Some(limit) = size.limit
|
||||||
if size.total > limit {
|
&& size.total > limit
|
||||||
return on_complete(Err(Error::BytesTotal(size.total, limit)));
|
{
|
||||||
}
|
return on_complete(Err(Error::BytesTotal(size.total, limit)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if bytes.is_empty() {
|
if bytes.is_empty() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue