Skip to content

Commit

Permalink
Function queue_message() moved to private _queue_message()
Browse files Browse the repository at this point in the history
  • Loading branch information
jchabloz committed Dec 30, 2023
1 parent 4392c0e commit 68b8def
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/verisocks/verisocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _read_content(self):
raise ValueError("Value for 'content-type' not recognized")
self._rx_state = VsRxState.RX_DONE

def queue_message(self, request):
def _queue_message(self, request):
"""Create message and add it to the TX queue buffer.
Args:
Expand Down Expand Up @@ -313,8 +313,7 @@ def write(self, all=True):
self._write(self._tx_msg_len.pop(0))
self._rx_expected += 1
else:
logging.warning("TX buffer is empty. No message to transmit. \
Use queue_message().")
logging.warning("TX buffer is empty. No message to transmit.")

def send(self, **cmd):
"""Sends a message with a JSON content.
Expand All @@ -335,7 +334,7 @@ def send(self, **cmd):
else:
timeout = None

self.queue_message({
self._queue_message({
"type": "application/json",
"encoding": "utf-8",
"content": cmd
Expand Down

0 comments on commit 68b8def

Please sign in to comment.