Skip to content

Commit f268d16

Browse files
committed
Add code comment explaining the use of an Enum for Algorithm
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 6dfde50 commit f268d16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/frequenz/sdk/actor/_power_managing/_power_managing_actor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def __init__( # pylint: disable=too-many-arguments
3636
power_distributing_requests_sender: Sender[power_distributing.Request],
3737
power_distributing_results_receiver: Receiver[power_distributing.Result],
3838
channel_registry: ChannelRegistry,
39+
# arguments to actors need to serializable, so we pass an enum for the algorithm
40+
# instead of an instance of the algorithm.
3941
algorithm: Algorithm = Algorithm.MATRYOSHKA,
4042
):
4143
"""Create a new instance of the power manager.

0 commit comments

Comments
 (0)