Skip to content

Commit

Permalink
Make Python chunk_stream_group.add_free_chunk work
Browse files Browse the repository at this point in the history
add_free_chunk was moved to a chunk_ring_pair base class, but the
signature for the lambda was not updated properly.
  • Loading branch information
bmerry committed Jun 22, 2023
1 parent 672b8f5 commit cf76a8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/py_recv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,12 +897,12 @@ py::module register_module(py::module &parent)
py::class_<detail::chunk_ring_pair<chunk_ringbuffer, chunk_ringbuffer>>(m, "ChunkRingPair")
.def(
"add_free_chunk",
[](chunk_ring_stream_wrapper &stream, chunk &c)
[](detail::chunk_ring_pair<chunk_ringbuffer, chunk_ringbuffer> &self, chunk &c)
{
push_chunk(
[&stream](std::unique_ptr<chunk> &&wrapper)
[&self](std::unique_ptr<chunk> &&wrapper)
{
stream.add_free_chunk(std::move(wrapper));
self.add_free_chunk(std::move(wrapper));
},
c
);
Expand Down

0 comments on commit cf76a8e

Please sign in to comment.