Skip to content

Data race on Request re-use #121

Open
@mattias-p

Description

@mattias-p

When I create a single Request and use it in a backoff.Retry callback, I get "DATA RACE" warnings. When I instead create the Request inside the backoff.Retry callback, everything works fine. The documentation states that Requests may be re-used. It looks to me like the current implementation is in violation of its documentation.

Software versions:

  • github.com/0x4b53/amqp-rpc/v5 v5.0.1
  • github.com/cenkalti/backoff/v5 v5.0.2 (not that I think it matters)

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