Skip to content

Commit

Permalink
fix(listener): Fix listening to wrong event
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver committed Jan 27, 2023
1 parent c83d362 commit 843980f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Worksome\HorizonTelemetry\Listeners;

use Illuminate\Queue\Events\JobProcessed;
use Illuminate\Queue\Events\JobProcessing;
use OpenTelemetry\API\Metrics\ObserverInterface;
use Worksome\HorizonTelemetry\Enums\MeterName;
use Worksome\HorizonTelemetry\Enums\MeterUnit;
Expand All @@ -15,7 +16,7 @@
*/
readonly class ProcessedJobsPeakMemoryUsagePreparationListener
{
public function __invoke(JobProcessed $event): void
public function __invoke(JobProcessing $event): void
{
memory_reset_peak_usage();
}
Expand Down

0 comments on commit 843980f

Please sign in to comment.