fix buffer not clearing
This commit is contained in:
parent
239c0a9f43
commit
4c0c0cd9f2
1 changed files with 1 additions and 2 deletions
|
@ -115,6 +115,7 @@ impl Blag {
|
||||||
let blag_meta: BlagMetadata = serde_json::from_str(&buf)?;
|
let blag_meta: BlagMetadata = serde_json::from_str(&buf)?;
|
||||||
debug!("blag meta: {blag_meta:?}");
|
debug!("blag meta: {blag_meta:?}");
|
||||||
let (meta, dont_cache, raw) = blag_meta.into_full(name);
|
let (meta, dont_cache, raw) = blag_meta.into_full(name);
|
||||||
|
buf.clear();
|
||||||
|
|
||||||
// this is morally reprehensible
|
// this is morally reprehensible
|
||||||
if let Some(raw) = raw {
|
if let Some(raw) = raw {
|
||||||
|
@ -124,10 +125,8 @@ impl Blag {
|
||||||
}
|
}
|
||||||
|
|
||||||
let parsed = start.elapsed();
|
let parsed = start.elapsed();
|
||||||
|
|
||||||
let rendering = Instant::now();
|
let rendering = Instant::now();
|
||||||
|
|
||||||
buf.clear();
|
|
||||||
reader.read_to_string(&mut buf).await?;
|
reader.read_to_string(&mut buf).await?;
|
||||||
|
|
||||||
let status = cmd.wait().await?;
|
let status = cmd.wait().await?;
|
||||||
|
|
Loading…
Reference in a new issue