Skip to content

Commit

Permalink
Update harvester_api.py (Chia-Network#5185)
Browse files Browse the repository at this point in the history
remove unnessuary time.time()
  • Loading branch information
x1957 authored May 24, 2021
1 parent 19216dc commit c1f54cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chia/harvester/harvester_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ async def lookup_challenge(
time_taken = time.time() - start
if time_taken > 5:
self.harvester.log.warning(
f"Looking up qualities on {filename} took: {time.time() - start}. This should be below 5 seconds "
f"Looking up qualities on {filename} took: {time_taken}. This should be below 5 seconds "
f"to minimize risk of losing rewards."
)
else:
pass
# If you want additional logs, uncomment the following line
# self.harvester.log.debug(f"Looking up qualities on {filename} took: {time.time() - start}")
# self.harvester.log.debug(f"Looking up qualities on {filename} took: {time_taken}")
for response in sublist:
total_proofs_found += 1
msg = make_msg(ProtocolMessageTypes.new_proof_of_space, response)
Expand Down

0 comments on commit c1f54cb

Please sign in to comment.