Miscellaneous

This commit is contained in:
Lasse Blaauwbroek
2023-06-09 22:01:32 +02:00
parent d6261b6d79
commit 0483596da1
3 changed files with 3 additions and 10 deletions

View File

@@ -1266,7 +1266,7 @@ cdef class _DynamicStructBuilder:
"""
self._check_write()
await _voidpromise_to_asyncio(
writeMessage(deref(stream.thisptr.get()), deref((<_MessageBuilder>self._parent).thisptr)))
writeMessage(deref(stream.thisptr), deref((<_MessageBuilder>self._parent).thisptr)))
self._is_written = True
def write_packed(self, file):
@@ -3033,7 +3033,7 @@ class _StructModule(object):
:rtype: :class:`_DynamicStructReader`"""
cdef schema_cpp.ReaderOptions opts = make_reader_opts(traversal_limit_in_words, nesting_limit)
reader = await _promise_to_asyncio(tryReadMessage(deref(stream.thisptr.get()), opts))
reader = await _promise_to_asyncio(tryReadMessage(deref(stream.thisptr), opts))
if reader is None:
return
return reader.get_root(self.schema)