Replies: 2 comments 1 reply
-
This doesn't work for you?: let ew = watcher(proxy_api, ListParams::default()); // No `.touched_objects()` |
Beta Was this translation helpful? Give feedback.
0 replies
-
Doh. I guess I got thrown the need to pin so I reached for the event flatteners.
Thanks for the help. Works like a charm now. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I need to process my Resource events Event::Added/Deleted which I can do with plain
my_api.watch
. However, I'd like to use the reconnect handling thewatcher
interface provides but it strips the event and just returns the underlying Api resource with is useless to me without the event context.Currently, the watch interface works but disconnects on a timeout which I don't want (I want it to run forever)
but I'd like
watcher.next().await
to not timeout. I'd put a loop around it but I hope to not see events repeated.Is there another way to use watcher.
For completeness, while this 'work', it strips the Event:
Please advise how I can make either way work reliably with the goal of retries/reconnects and the actual event.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions