Skip to content

Commit

Permalink
change ping call name
Browse files Browse the repository at this point in the history
  • Loading branch information
Chlorophytus committed Aug 10, 2024
1 parent f424b71 commit 59e8c5d
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion chloresolve/chloresolve/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.2.0+rev53"
__version__ = "1.2.0+rev54"
4 changes: 2 additions & 2 deletions chloresolve/chloresolve/uptime_pinging.py
Original file line number Diff line number Diff line change
@@ -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):
"""

0 comments on commit 59e8c5d

Please sign in to comment.