Skip to content

Add mutex to make sure concurrent requests don't fail #2

@im-adithya

Description

@im-adithya

Requests which are made concurrently have a possibility of failing because Oauth2's token refresh is not optimized for concurrent token requests. So we should use sync.mutex so we can lock the requesting process to avoid failures.

Check this commit for implementation details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions