From 59e8c5dbc086d37bdb5e660890079f7ce9b3b3bc Mon Sep 17 00:00:00 2001 From: Roland Metivier Date: Sat, 10 Aug 2024 15:14:21 -0500 Subject: [PATCH] change ping call name --- CMakeLists.txt | 2 +- chloresolve/chloresolve/__init__.py | 2 +- chloresolve/chloresolve/uptime_pinging.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 60676f3..f68c3e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.25) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Project instantiation -project(chlorobot VERSION 1.2.0.53) +project(chlorobot VERSION 1.2.0.52) # Fetch gRPC option(USE_SYSTEM_GRPC "Use system installed gRPC" ON) diff --git a/chloresolve/chloresolve/__init__.py b/chloresolve/chloresolve/__init__.py index 3c0845f..5a2bdf0 100644 --- a/chloresolve/chloresolve/__init__.py +++ b/chloresolve/chloresolve/__init__.py @@ -1 +1 @@ -__version__ = "1.2.0+rev53" +__version__ = "1.2.0+rev54" diff --git a/chloresolve/chloresolve/uptime_pinging.py b/chloresolve/chloresolve/uptime_pinging.py index 1ed5d6e..9879881 100644 --- a/chloresolve/chloresolve/uptime_pinging.py +++ b/chloresolve/chloresolve/uptime_pinging.py @@ -13,14 +13,14 @@ def __init__(self, interval_seconds: int, uri: str): self.task = asyncio.ensure_future(self.heartbeat()) self.logger = logging.getLogger(__class__.__name__) - async def ping(self): + async def heartbeat(self): """ Heartbeats to an UptimeRobot/etc. URL """ requests.get(self.uri) self.logger.info("Sending heartbeat") await asyncio.sleep(self.interval_seconds) - await self.ping() + await self.heartbeat() def cancel(self): """