Skip to content

Commit 3518b92

Browse files
committed
Fix await without async function
1 parent cea9a8d commit 3518b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lvmbeat/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def update_state_file(state: State):
284284

285285

286286
@app.get("/heartbeat", description="Sets the heartbeat.")
287-
def route_get_heartbeat():
287+
async def route_get_heartbeat():
288288
"""Sets the heartbeat."""
289289

290290
app.state.last_seen = time.time()

0 commit comments

Comments
 (0)