Skip to content

Issue: Duplicate delivery_report() Function Definition FilePath: 06-streaming/python/avro_example/producer.py #737

@SanathPatil

Description

@SanathPatil

Remove the top-level delivery_report() function

Top-level function outside Class: def delivery_report(err, msg):

Inside RideAvroProducer class:
@staticmethod
def delivery_report(err, msg):

Use the existing @staticmethod inside the class

Update the produce() method to call:
on_delivery=self.delivery_report
This keeps the codebase clean, improves encapsulation, and avoids confusion about which version is active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions