Skip to content

Commit 38e333b

Browse files
committed
Add a timeout to set_bounds()
All other calls have a timeout, so this one should probably too. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent d268ec7 commit 38e333b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frequenz/client/microgrid/_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ async def set_bounds(
478478
target_metric=target_metric,
479479
bounds=PbBounds(lower=lower, upper=upper),
480480
),
481+
timeout=int(DEFAULT_GRPC_CALL_TIMEOUT),
481482
),
482483
)
483484
except grpc.aio.AioRpcError as err:

0 commit comments

Comments
 (0)