set higher branch quota - describeInstances needs plenty

This commit is contained in:
Emil Lerch 2021-07-24 00:17:39 -07:00
parent f0fe3bbb94
commit 079677bb2e
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -1625,6 +1625,8 @@ fn parseInternal(comptime T: type, token: Token, tokens: *TokenStream, options:
var r: T = undefined; var r: T = undefined;
var fields_seen = [_]bool{false} ** structInfo.fields.len; var fields_seen = [_]bool{false} ** structInfo.fields.len;
errdefer { errdefer {
// TODO: why so high here? This was needed for ec2 describe instances
@setEvalBranchQuota(100000);
inline for (structInfo.fields) |field, i| { inline for (structInfo.fields) |field, i| {
if (fields_seen[i] and !field.is_comptime) { if (fields_seen[i] and !field.is_comptime) {
parseFree(field.field_type, @field(r, field.name), options); parseFree(field.field_type, @field(r, field.name), options);