We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4e61c commit 7a1718eCopy full SHA for 7a1718e
src/frequenz/client/electricity_trading/_client.py
@@ -1059,6 +1059,9 @@ def receive_public_order_book(
1059
start_time_utc = dt_to_pb_timestamp_utc(start_time) if start_time else None
1060
end_time_utc = dt_to_pb_timestamp_utc(end_time) if end_time else None
1061
1062
+ # We are caching requests to Enable Efficient Reuse and Resource Management.
1063
+ # The following cache key contains all fields of a `ReceivePublicOrderBookStreamRequest`
1064
+ # to ensure that the stream is unique for each combination of parameters.
1065
cache_key = (
1066
public_order_filter,
1067
(start_time_utc.seconds, start_time_utc.nanos) if start_time_utc else None,
0 commit comments