Skip to content

Commit

Permalink
Fix entitlement memory metering
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Jul 19, 2023
1 parent d129d24 commit fc11fd8
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 164 deletions.
2 changes: 1 addition & 1 deletion runtime/ast/entitlement_declaration.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func NewEntitlementMappingDeclaration(
docString string,
declRange Range,
) *EntitlementMappingDeclaration {
common.UseMemory(gauge, common.EntitlementDeclarationMemoryUsage)
common.UseMemory(gauge, common.EntitlementMappingDeclarationMemoryUsage)

return &EntitlementMappingDeclaration{
Access: access,
Expand Down
1 change: 0 additions & 1 deletion runtime/common/memorykind.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const (
MemoryKindDictionaryStaticType
MemoryKindOptionalStaticType
MemoryKindIntersectionStaticType
MemoryKindUnauthorizedStaticAccess
MemoryKindEntitlementSetStaticAccess
MemoryKindEntitlementMapStaticAccess
MemoryKindReferenceStaticType
Expand Down
Loading

0 comments on commit fc11fd8

Please sign in to comment.