Skip to content

Commit

Permalink
refactor: Make K8sPreprocessorActor generic regarding type of managed…
Browse files Browse the repository at this point in the history
… reports
  • Loading branch information
roda82 committed Dec 1, 2023
1 parent e740c64 commit 4ac8de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/powerapi/processor/pre/k8s/k8s_pre_processor_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from powerapi.processor.pre.k8s.k8s_pre_processor_handlers import K8sPreProcessorActorHWPCReportHandler, \
K8sPreProcessorActorStartMessageHandler, K8sPreProcessorActorPoisonPillMessageHandler
from powerapi.processor.processor_actor import ProcessorState, ProcessorActor
from powerapi.report import HWPCReport
from powerapi.report.report import Report

ADDED_EVENT = 'ADDED'
DELETED_EVENT = 'DELETED'
Expand Down Expand Up @@ -211,6 +211,6 @@ def setup(self):
"""
ProcessorActor.setup(self)
self.add_handler(message_type=StartMessage, handler=K8sPreProcessorActorStartMessageHandler(state=self.state))
self.add_handler(message_type=HWPCReport, handler=K8sPreProcessorActorHWPCReportHandler(state=self.state))
self.add_handler(message_type=Report, handler=K8sPreProcessorActorHWPCReportHandler(state=self.state))

Check warning on line 214 in src/powerapi/processor/pre/k8s/k8s_pre_processor_actor.py

View check run for this annotation

Codecov / codecov/patch

src/powerapi/processor/pre/k8s/k8s_pre_processor_actor.py#L214

Added line #L214 was not covered by tests
self.add_handler(message_type=PoisonPillMessage,
handler=K8sPreProcessorActorPoisonPillMessageHandler(state=self.state))

0 comments on commit 4ac8de4

Please sign in to comment.