Skip to content

Commit 23d3f62

Browse files
authored
fix: avoid excess memory consumption in indexer response rewrite (#1143)
This change avoids excessive memory allocation in the query rewrite path.
1 parent a9c0521 commit 23d3f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/indexer_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ fn rewrite_response(response: &str) -> Result<(String, Vec<Error>, Option<Block>
173173
#[serde(rename = "_gateway_probe_", skip_serializing)]
174174
probe: Option<Meta>,
175175
#[serde(flatten)]
176-
data: serde_json::Value,
176+
data: Box<serde_json::value::RawValue>,
177177
}
178178
#[derive(Deserialize)]
179179
struct Meta {

0 commit comments

Comments
 (0)