Skip to content

Commit f40c733

Browse files
committed
Fix bad message size returned from notification helpers
1 parent 7a9ef35 commit f40c733

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compost_rpc/compost_rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ def generate(self, endpoint: Endpoint = Endpoint.REMOTE) -> list[tuple[Path, str
17021702
size_t payload_len = dest - tx.payload_buf;
17031703
tx.header.wlen = compost_bytes_to_words(payload_len);
17041704
compost_header_store(tx_buf, tx.header);
1705-
return 4 + payload_len;
1705+
return COMPOST_MSG_LEN(tx_buf);
17061706
}}
17071707
17081708
"""

0 commit comments

Comments
 (0)