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

Compatibility with OTP 18.0 #497

Merged
merged 4 commits into from
Oct 5, 2015
Merged

Compatibility with OTP 18.0 #497

merged 4 commits into from
Oct 5, 2015

Conversation

fenek
Copy link
Member

@fenek fenek commented Sep 1, 2015

This PR makes MongooseIM compatible with OTP 18.0.

@michalwski
Copy link
Contributor

Please add Erlang/OTP 18 to travis jobs, if available already.

@mongoose-im
Copy link
Collaborator

travis is using test branch OTP18 from https://github.com/esl/ejabberd_tests/tree/OTP18

@michalwski
Copy link
Contributor

@fenek, could you please create a corresponding PR in ejabberd_tests?

@fenek
Copy link
Member Author

fenek commented Oct 2, 2015

Rebased with master. Travis, be a good boy!

-spec remove_element(E :: 'error' | tuple(),
Set :: gb_set()) -> gb_set().
remove_element(E, Set) ->
case ?SETS:is_element(E, Set) of
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to check if the element exists? Currently we use gb_sets here and according to doc - if the element doesn't exist, unchanged set is returned.

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't, that's why I removed these lines. :)

michalwski added a commit that referenced this pull request Oct 5, 2015
Compatibility with OTP 18.0
@michalwski michalwski merged commit 3252263 into master Oct 5, 2015
@fenek fenek deleted the OTP18 branch October 5, 2015 11:06
@michalwski michalwski mentioned this pull request Oct 15, 2015
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.

4 participants