Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
fix: get start time when getting a payload from consumer (#32)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcelo Shiba <[email protected]>
  • Loading branch information
mhshiba and Marcelo Shiba authored Jul 12, 2022
1 parent 8ecbfa0 commit 6a33150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pipefy_message/consumer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ def build_consumer_instance
# from which the call to process_message was made (see perform
# method in the parent module).
def process_message
start = Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond)
obj = new

logger.info({ message_text: "Calling consumer poller" })

build_consumer_instance.poller do |payload, metadata|
start = Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond)
logger.info({
message_text: "Message received by poller to be processed by consumer",
received_message: payload,
Expand Down

0 comments on commit 6a33150

Please sign in to comment.