all: use Go 1.19 and its atomic types
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
d1d08426b2
commit
b51010ba13
20 changed files with 156 additions and 288 deletions
|
|
@ -148,7 +148,7 @@ func TestNoiseHandshake(t *testing.T) {
|
|||
t.Fatal("failed to derive keypair for peer 2", err)
|
||||
}
|
||||
|
||||
key1 := peer1.keypairs.loadNext()
|
||||
key1 := peer1.keypairs.next.Load()
|
||||
key2 := peer2.keypairs.current
|
||||
|
||||
// encrypting / decryption test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue