various: remove remaining uses of key.NewPrivate.

Updates #3206

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-10-29 15:00:57 -07:00
parent ccd36cb5b1
commit eeb97fd89f
4 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ func TestNoteReceiveActivity(t *testing.T) {
}
ra := e.recvActivityAt
nk := tailcfg.NodeKey(key.NewPrivate().Public())
nk := tailcfg.NodeKeyFromNodePublic(key.NewNode().Public())
// Activity on an untracked key should do nothing.
e.noteRecvActivity(nk)