mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-22 04:32:40 +09:00
Two methods read or write state guarded by their receiver's mutex without taking it, relying on every caller to hold it, but were not named to say so. enqueueAddressAssignment documented the requirement in prose only; lookupAddrBySrcIPAndTransitIP had no doc comment at all. Rename both with the Locked suffix the package already uses for drainAddrsLocked, transitIPRoutableLocked and removeFlowLocked, and give the connector lookup a doc comment stating the requirement. Fixes https://github.com/tailscale/corp/issues/38924 Change-Id: Ib8bcaf5809ae6f982a504ae554ad1304dbb53018 Signed-off-by: Mazdak Nasab <mazdak.nasab@gmail.com>