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

Fix compiler warnings #473

Merged
merged 5 commits into from
Dec 14, 2022
Merged

Fix compiler warnings #473

merged 5 commits into from
Dec 14, 2022

Conversation

b1az
Copy link
Contributor

@b1az b1az commented Aug 30, 2022

The usage of child_spec/1 addresses #390.

The change is acceptable as `ConsumerGroup` is the only client of
`ConsumerGroup.Manager`. The defaults on `opts` parameter aren't used
and their loss is thus likewise acceptable.

Fixes a compiler warning due to a deprecated usage of
`Supervisor.Spec.worker/3`.
This enables the usage of `child_spec/1` and removal of
the deprecated `Supervisor.Spec.supervisor/3` call.

Fixes kafkaex#390.
@@ -10,15 +10,15 @@ KafkaEx
[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](http://hexdocs.pm/kafka_ex/)

KafkaEx is an Elixir client for [Apache Kafka](http://kafka.apache.org/) with
support for Kafka versions 0.8.0 and newer. KafkaEx requires Elixir 1.5+ and
support for Kafka versions 0.8.0 and newer. KafkaEx requires Elixir 1.6+ and
Copy link
Member

Choose a reason for hiding this comment

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

I believe Config as a replacement for Mix.Config was introduced in 1.9. We would need to update this to say 1.9 if we make that change. We should also change mix.exs to require the same version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This proposed version bump to 1.6+ (e513413) was meant to get README in sync with the already-changed mix.exs.

While the migration to Config module (1f4e99a), introduced in 1.9.0, was meant to remove the warning for KafkaEx developers. This change has no bearing on KafkaEx users. Though it was my oversight that Elixir 1.6 was still used in the test suite.

Hence I think it's best if I drop 1f4e99a. A decision to bump versions from 1.6 to 1.9 can be made at some other time.

Copy link
Member

Choose a reason for hiding this comment

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

That makes sense to me 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

@joshuawscott Can we merge this?

@joshuawscott joshuawscott merged commit 4344b02 into kafkaex:master Dec 14, 2022
b1az added a commit to b1az/kafka_ex that referenced this pull request Dec 24, 2022
b1az added a commit to b1az/kafka_ex that referenced this pull request Dec 24, 2022
@b1az b1az deleted the warnings branch December 24, 2022 08:14
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