fix(inferium-harvester): avoid printing the same error message each time

This commit is contained in:
Guillaume ARM 2024-05-21 23:45:44 +02:00
parent b9144d6847
commit 7233ed7eb5

View File

@ -286,6 +286,7 @@ local function fetchRemotePlan()
return previouslyFetchedRemotePlan return previouslyFetchedRemotePlan
elseif not replyMessage and errMessage then elseif not replyMessage and errMessage then
if lastErrMessage ~= errMessage then if lastErrMessage ~= errMessage then
lastErrMessage = errMessage
print('> failed to fetch: ' .. tostring(errMessage)) print('> failed to fetch: ' .. tostring(errMessage))
end end
end end