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

Work around compiler warning and provide backward compatibility. #125

Merged
merged 1 commit into from
Sep 7, 2015

Conversation

cicku
Copy link
Contributor

@cicku cicku commented Sep 3, 2015

While compiling this using erlc, warning thrown:

Warning: crypto:sha_mac/2 is deprecated and will be removed in in a future release; use crypto:hmac/3

In order to support older OTP releases it's better to have crypto:sha_mac there but for new OTPs we should use crypto:hmac instead.

While compiling this using erlc, warning thrown:

`Warning: crypto:sha_mac/2 is deprecated and will be removed in in a future release; use crypto:hmac/3`

In order to support older OTP releases it's better to have crypto:sha_mac there but for new OTPs we should use crypto:hmac instead.
@tisba
Copy link
Collaborator

tisba commented Sep 3, 2015

Looks like a good idea. I'm wondering though (in general) what the performance impact of erlang:function_exported/3 is.

@cicku
Copy link
Contributor Author

cicku commented Sep 5, 2015

Haven't measured yet, guess no substantial impact.

@nniclausse
Copy link
Contributor

yes, i checked with timer:tc, it gives 1 or 2 microseconds, which is fine.

nniclausse added a commit that referenced this pull request Sep 7, 2015
Work around compiler warning and provide backward compatibility.
@nniclausse nniclausse merged commit 36f3d5c into processone:master Sep 7, 2015
@nniclausse nniclausse modified the milestone: v1.6.1 Aug 17, 2017
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.

None yet

3 participants