From 613447cc1edf176ffcd37f190320906079caf9ce Mon Sep 17 00:00:00 2001 From: Julien Loizelet Date: Fri, 23 Feb 2024 17:32:33 +0900 Subject: [PATCH] feat(signals): Rename _send_signals to _send_signals_to_capi --- src/cscapi/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cscapi/client.py b/src/cscapi/client.py index e9bccce..1347929 100644 --- a/src/cscapi/client.py +++ b/src/cscapi/client.py @@ -171,7 +171,7 @@ def _send_signals_by_machine_id( ) sent_signal_ids = [] try: - sent_signal_ids = self._send_signals( + sent_signal_ids = self._send_signals_to_capi( machine_to_process.token, signals_by_machineid[machine_to_process.machine_id], ) @@ -220,7 +220,7 @@ def _send_signals_by_machine_id( return total_sent - def _send_signals(self, token: str, signals: List[SignalModel]) -> List[int]: + def _send_signals_to_capi(self, token: str, signals: List[SignalModel]) -> List[int]: result = [] for signal_batch in batched(signals, 250): body = [asdict(signal) for signal in signal_batch]