Send unack OP_MSG. Can raise ConnectionFailure or InvalidDocument. :param msg: bytes, an OP_MSG message. :param max_doc_size: size in bytes of the largest document in `msg`.
(self, msg: bytes, max_doc_size: int)
| 467 | raise NotPrimaryError("not primary", {"ok": 0, "errmsg": "not primary", "code": 10107}) |
| 468 | |
| 469 | async def unack_write(self, msg: bytes, max_doc_size: int) -> None: |
| 470 | """Send unack OP_MSG. |
| 471 | |
| 472 | Can raise ConnectionFailure or InvalidDocument. |
| 473 | |
| 474 | :param msg: bytes, an OP_MSG message. |
| 475 | :param max_doc_size: size in bytes of the largest document in `msg`. |
| 476 | """ |
| 477 | self._raise_if_not_writable(True) |
| 478 | await self.send_message(msg, max_doc_size) |
| 479 | |
| 480 | async def write_command( |
| 481 | self, request_id: int, msg: bytes, codec_options: CodecOptions[Mapping[str, Any]] |
nothing calls this directly
no test coverage detected