Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(kno-3079): idempotency keys for workflow triggers #17

Merged

Conversation

brentjanderson
Copy link
Contributor

No description provided.

Copy link
Contributor

@cjbell cjbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment!

lib/knock/api.ex Outdated
]

Tesla.client(middleware, config.adapter)
end

defp maybe_idempotency_key_header(idempotency_key: key), do: [{"Idempotency-Key", key}]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One note here: prefer passing the opts as a map if you want to match like this, otherwise multiple keys in this list won't match as expected

@brentjanderson brentjanderson merged commit c6aba07 into main Apr 6, 2023
@brentjanderson brentjanderson deleted the brent-kno-3079-sdk-add-idempotence-header-to-elixir-sdk branch April 6, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants