linkerd2/policy-controller/k8s/index
Eliza Weisman fa3ca457f5
refactor use of `watch` channels in policy controller index (#9405)
Currently, the policy-controller index's `PodPortServer` struct stores
both the `Sender` and `Receiver` sides of a `tokio::sync::watch`
channel. This is unnecessary, since `Sender` has a `subscribe` method
that creates a new `Receiver`, and a `send_if_modified` method for
conditionally checking whether the value in the `watch` channel should
be updated.

This branch refactors the `PodPortServer` type to use these `Sender`
methods. This doesn't result in any functional change, but is maybe a
little bit nicer. Not a big deal though.
2022-10-14 16:26:04 -07:00
..
src refactor use of `watch` channels in policy controller index (#9405) 2022-10-14 16:26:04 -07:00
Cargo.toml Update clap to v4 and kubert to v0.11 (#9522) 2022-09-30 10:14:45 -07:00