Skip to content

Conversation

@tafia
Copy link
Owner

@tafia tafia commented Jun 12, 2017

The current situation, where the reader owns the namespace buffer leads to an inconvenient api.

In the inner loop of the read_namespaced_event, the reader, mutably borrowed cannot be used, notably for decoding the event. The workaround, having temporary variables is not satisfactory (more boilerplate and additional checks).

Making the caller own the buffer fixes the situation, while still avoiding extra allocation.

See #68

tafia added 4 commits June 12, 2017 16:40
The current situation, where the reader owns the namespace buffer leads to a bad api.
Indeed in the inner loop of the `read_namespaced_event`, the reader, mutably borrowed
cannot be used.

Making the caller own the buffer fixes the situation, while still avoiding extra allocation.
@tafia tafia merged commit 6700787 into master Jun 13, 2017
@tafia tafia deleted the borrow_namespace branch June 13, 2017 09:17
@tafia
Copy link
Owner Author

tafia commented Jun 13, 2017

Published v0.8.0

@Mingun Mingun added the namespaces Issues related to namespaces support label Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

namespaces Issues related to namespaces support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants