linkerd2/policy-controller/k8s
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
..
api policy: fix backwards `NotIn` label selector (#9433) 2022-09-27 08:47:52 -07:00
index refactor use of `watch` channels in policy controller index (#9405) 2022-10-14 16:26:04 -07:00