Skip to content

Move KafkaClient to RD* namespace #89

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

Merged

Conversation

felixschlegel
Copy link
Contributor

Motivation:

Our KafkaClient class has evolved into a wrapper of rd_kafka_* C
functions. Therefore I thought it is reasonable to move it to the
RDKafka* namespace (conceptually) and remove the imports of CRDKafka
in KafkaConsumer and KafkaProducer.

Modifications:

  • KafkaConsumer: remove CRDKafka import
  • KafkaProducer: remove CRDKafka import
  • rename KafkaClient -> RDKafkaClientand move it to theRDKafka`
    folder
  • delete RDKafka.swift and move create/makeClient factory method to
    RDKafkaClient

Motivation:

Our `KafkaClient` class has evolved into a wrapper of `rd_kafka_*` C
functions. Therefore I thought it is reasonable to move it to the
`RDKafka*` namespace (conceptually) and remove the imports of `CRDKafka`
in `KafkaConsumer` and `KafkaProducer`.

Modifications:

* `KafkaConsumer`: remove `CRDKafka` import
* `KafkaProducer`: remove `CRDKafka` import
* rename `KafkaClient -> `RDKafkaClient` and move it to the `RDKafka`
  folder
* delete `RDKafka.swift` and move `create/makeClient` factory method to
  `RDKafkaClient`
@FranzBusch FranzBusch merged commit 51b5e64 into swift-server:main Jul 20, 2023
@FranzBusch FranzBusch deleted the fs-kafka-client-to-rd-namespace branch July 20, 2023 21:28
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.

2 participants