lwinterface / panini

Python microframework for NATS messaging
MIT License
87 stars 19 forks source link

RuntimeWarning in time sending panini_event.*.*.started with NATSTimeoutMiddleware #98

Closed oleksii-volotskov closed 3 years ago

oleksii-volotskov commented 3 years ago

Try to add NATSTimeoutMiddleware and run the app

There is a warning:

panini/panini/app.py:215: RuntimeWarning: coroutine '_MiddlewareManager._wrap_function_by_middleware..wrap_function_by_send_middleware..aio_next_wrapper' was never awaited self.connector.publish_sync(f'panini_events.{self.service_name}.{self.client_id}.started', {}) RuntimeWarning: Enable tracemalloc to get the object allocation traceback

danylott commented 3 years ago

Fixed, by using low-level publish from nats aio