Skip to content

HttpGateway::attested_contracts should expire unused tokens to avoid a memory leak #1519

Open
@sanity

Description

@sanity

After we merge the fix-delegate-auth branch, the HttpGateway::attested_contracts HashMap doesn't currently remove old tokens which will lead to a (very slow) memory leak.

One way to do this would be to use a crate like mini-moka to replace the Arc<RwLock<HashMap>> used currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions