Skip to content

Commit

Permalink
feat(signals): Rename _send_signals to _send_signals_to_capi
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Feb 23, 2024
1 parent 8bc61a9 commit 613447c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cscapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
)
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 613447c

Please sign in to comment.