]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: avoid copying lock in tests
authorJosh Bleecher Snyder <josh@tailscale.com>
Sat, 5 Dec 2020 00:05:51 +0000 (16:05 -0800)
committerJosh Bleecher Snyder <josh@tailscale.com>
Tue, 8 Dec 2020 22:25:10 +0000 (14:25 -0800)
commitc4895658e629ed9d5154c73eb5585c12fdba5b4b
treeeb19b838990a04e566dc5a497da16104fcd180b7
parentd3ff2d6b62b095f37582affe84e267d7e5be88c6
device: avoid copying lock in tests

This doesn't cause any practical problems as it is,
but vet (rightly) flags this code as copying a mutex.
It is easy to fix, so do so.

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