Skip to content

Commit

Permalink
Fix resend message
Browse files Browse the repository at this point in the history
  • Loading branch information
bart0003 committed Aug 19, 2022
1 parent fd6b2f6 commit bc53ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart_kit/start_points/main_loop_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def process_message(self, mq_message: KafkaMessage, consumer, kafka_key, stats):
"class_name": self.__class__.__name__
}, user=user,
level="WARNING")
self.publishers[kafka_key].send_to_topic(message_value, valid_key, mq_message.topic(),
self.publishers[kafka_key].send_to_topic(mq_message.value(), valid_key, mq_message.topic(),
mq_message.headers())
log(f"%(class_name)s.process_message: Kafka message with invalid Kafka message key '{message_key}' "
f"resent again with a valid key: '{valid_key}'",
Expand Down

0 comments on commit bc53ea1

Please sign in to comment.