Skip to content

One extra sleep at the end of the retry loop in client.Do func #125

@sayan-mitra

Description

@sayan-mitra

I am using exponential backoff with a retry count of n. I see that after n retries, the sleep before continue https://github.com/gojek/heimdall/blob/master/httpclient/client.go#L159 blocks one last time before coming out of the loop.

Is this expected?

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