summaryrefslogtreecommitdiffhomepage
path: root/device/cookie.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2021-01-15 14:32:34 -0800
committerJosh Bleecher Snyder <josh@tailscale.com>2021-01-25 09:09:24 -0800
commit6252de0db9331cbc20074e9d40165266b5816148 (patch)
treef1d46cda4d0ae0ba07a29962e556f61fc2957423 /device/cookie.go
parenta029b942ae25be8ea31a4945198617c76c31abcd (diff)
device: split IpcSetOperation into parts
The goal of this change is to make the structure of IpcSetOperation easier to follow. IpcSetOperation contains a small state machine: It starts by configuring the device, then shifts to configuring one peer at a time. Having the code all in one giant method obscured that structure. Split out the parts into helper functions and encapsulate the peer state. This makes the overall structure more apparent. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/cookie.go')
0 files changed, 0 insertions, 0 deletions