mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Use Go 1.21 in CI, update minimum version to Go 1.20, lint fixes, update quic-go
This commit is contained in:
parent
fe14981dda
commit
5b203ad8c5
13 changed files with 59 additions and 58 deletions
|
@ -2,7 +2,7 @@ package core
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"math/rand"
|
||||
"crypto/rand"
|
||||
"net/url"
|
||||
"os"
|
||||
"testing"
|
||||
|
@ -146,7 +146,7 @@ func TestCore_Start_Transfer(t *testing.T) {
|
|||
|
||||
// Send
|
||||
msg := make([]byte, msgLen)
|
||||
rand.Read(msg[40:])
|
||||
_, _ = rand.Read(msg[40:])
|
||||
msg[0] = 0x60
|
||||
copy(msg[8:24], nodeB.Address())
|
||||
copy(msg[24:40], nodeA.Address())
|
||||
|
@ -178,7 +178,7 @@ func BenchmarkCore_Start_Transfer(b *testing.B) {
|
|||
|
||||
// Send
|
||||
msg := make([]byte, msgLen)
|
||||
rand.Read(msg[40:])
|
||||
_, _ = rand.Read(msg[40:])
|
||||
msg[0] = 0x60
|
||||
copy(msg[8:24], nodeB.Address())
|
||||
copy(msg[24:40], nodeA.Address())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue