buz 2.17.0rc4__py3-none-any.whl → 2.17.0rc5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,8 @@ class TransactionalOutboxEventBus(EventBus):
20
20
  self.__outbox_repository = outbox_repository
21
21
  self.__event_to_outbox_record_translator = event_to_outbox_record_translator
22
22
  self.__outbox_record_validator = outbox_record_validator
23
- self.__publish_middleware_chain_resolver = PublishMiddlewareChainResolver(publish_middlewares or [])
23
+ self.__publish_middleware = publish_middlewares
24
+ self.__publish_middleware_chain_resolver = PublishMiddlewareChainResolver(self.__publish_middleware or [])
24
25
 
25
26
  def publish(self, event: Event) -> None:
26
27
  self.__publish_middleware_chain_resolver.resolve(event, self.__perform_publish)
@@ -30,10 +31,11 @@ class TransactionalOutboxEventBus(EventBus):
30
31
  self.__outbox_repository.save(outbox_record)
31
32
 
32
33
  def bulk_publish(self, events: Iterable[Event]) -> None:
34
+ publish_middleware_chain_resolver = PublishMiddlewareChainResolver(self.__publish_middleware or [])
33
35
  outbox_records: list[OutboxRecord] = []
34
36
 
35
37
  for event in events:
36
- self.__publish_middleware_chain_resolver.resolve(event, lambda resolved_event: None)
38
+ publish_middleware_chain_resolver.resolve(event, lambda resolved_event: None)
37
39
  outbox_records.append(self.__process_event(event))
38
40
 
39
41
  if len(outbox_records) == 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: buz
3
- Version: 2.17.0rc4
3
+ Version: 2.17.0rc5
4
4
  Summary: Buz is a set of light, simple and extensible implementations of event, command and query buses.
5
5
  License: MIT
6
6
  Author: Luis Pintado Lozano
@@ -140,7 +140,7 @@ buz/event/transactional_outbox/outbox_record_validation/outbox_record_validation
140
140
  buz/event/transactional_outbox/outbox_record_validation/outbox_record_validator.py,sha256=XGHTT1dH2CJOqhYYnyPJHmZsAuVXuDOeqgJzK7mRidc,328
141
141
  buz/event/transactional_outbox/outbox_record_validation/size_outbox_record_validator.py,sha256=f8sQ5IHfO4J8m5l7rS3JYUoBvx0B1EAFMRsJ0HPQKG8,2436
142
142
  buz/event/transactional_outbox/outbox_repository.py,sha256=Sn7aWaq1G6uiKXcV09l9L1eVQ_bPUTqY-OSD12_H2jU,628
143
- buz/event/transactional_outbox/transactional_outbox_event_bus.py,sha256=mrsqnITsZ0KZqY93YiEIrfrkzwcwGhEFaxwbQAM4asU,2530
143
+ buz/event/transactional_outbox/transactional_outbox_event_bus.py,sha256=Z9YTfixQ2gd0WRVkyK-rCi7EGJvLZqBYvfsFI8ZZEo8,2693
144
144
  buz/event/transactional_outbox/transactional_outbox_worker.py,sha256=x6kf-Oc4oYKu9S4MTcCqd3VqPNURScTReYJ3Ahx4rKA,2221
145
145
  buz/event/worker.py,sha256=BL9TXB_kyr0Avql9fIcFm3CDNnXPvZB6O6BxVwjtCdA,942
146
146
  buz/handler.py,sha256=W6jSTo5BNV9u9QKBaEMhLIa3tgQocd6oYEJf5K4EfEU,358
@@ -258,7 +258,7 @@ buz/serializer/message_to_json_bytes_serializer.py,sha256=RGZJ64t4t4Pz2FCASZZCv-
258
258
  buz/wrapper/__init__.py,sha256=GnRdJFcncn-qp0hzDG9dBHLmTJSbHFVjE_yr-MdW_n4,77
259
259
  buz/wrapper/async_to_sync.py,sha256=OfK-vrVUhuN-LLLvekLdMbQYtH0ue5lfbvuasj6ovMI,698
260
260
  buz/wrapper/event_loop.py,sha256=pfBJ1g-8A2a3YgW8Gf9Fg0kkewoh3-wgTy2KIFDyfHk,266
261
- buz-2.17.0rc4.dist-info/LICENSE,sha256=jcLgcIIVaBqaZNwe0kzGWSU99YgwMcI0IGv142wkYSM,1062
262
- buz-2.17.0rc4.dist-info/METADATA,sha256=VdgMEfesDUOw2RFFiIf1Z4hh32XO2tBGc1qd2uUwv98,12682
263
- buz-2.17.0rc4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
264
- buz-2.17.0rc4.dist-info/RECORD,,
261
+ buz-2.17.0rc5.dist-info/LICENSE,sha256=jcLgcIIVaBqaZNwe0kzGWSU99YgwMcI0IGv142wkYSM,1062
262
+ buz-2.17.0rc5.dist-info/METADATA,sha256=8P-jaumXPKElQgziEnC_xjsCqMGvDVpMsbV0jDzqaqI,12682
263
+ buz-2.17.0rc5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
264
+ buz-2.17.0rc5.dist-info/RECORD,,