]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: use defer to simplify peer.NewTimer
authorJosh Bleecher Snyder <josh@tailscale.com>
Mon, 14 Dec 2020 23:30:10 +0000 (15:30 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 7 Jan 2021 13:49:44 +0000 (14:49 +0100)
commitea8fbb5927d462099103f42a124aeb9922bf3d0f
tree1d831f9e8e6262a839533bba032787632c809c84
parent93a4313c3a809afe67f1dc430f544282af2b388c
device: use defer to simplify peer.NewTimer

This also makes the lifetime of modifyingLock more prominent.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
device/timers.go