hashserv: Rename clean_unused -> clean-unused
PATCH 1/1 hashserv: Rename clean_unused -> clean-unused
Because it will bother me that it doesn't match the others
Signed-off-by Joshua Watt <[email protected]>
--- bitbake/lib/hashserv/client.py | 2 +- bitbake/lib/hashserv/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/hashserv/client.py +1 -1
@@ -107,7 +107,7 @@ class AsyncClient(bb.asyncrpc.AsyncClient): async def clean_unused(self, max_age): await self._set_mode(self.MODE_NORMAL) - return await self.send_message({"clean_unused": {"max_age_seconds": max_age}}) + return await self.send_message({"clean-unused": {"max_age_seconds": max_age}}) class Client(bb.asyncrpc.Client):
bitbake/lib/hashserv/server.py +1 -1
@@ -187,7 +187,7 @@ class ServerClient(bb.asyncrpc.AsyncServerConnection): 'reset-stats': self.handle_reset_stats, 'backfill-wait': self.handle_backfill_wait, 'remove': self.handle_remove, - 'clean_unused': self.handle_clean_unused, + 'clean-unused': self.handle_clean_unused, }) def validate_proto_version(self):
Signature · 1 line
2.34.1