Fix lint errors

This commit is contained in:
世界
2026-05-14 22:53:22 +08:00
parent 4b55717612
commit 2c2e08e608
38 changed files with 284 additions and 333 deletions
+2 -2
View File
@@ -72,14 +72,14 @@ func TestIntegrationRecvAbortsOnClose(t *testing.T) {
func TestIntegrationConcurrentOpen(t *testing.T) {
errCh := make(chan error, 2)
handles := make(chan *Handle, 2)
for i := 0; i < 2; i++ {
for range 2 {
go func() {
h, err := Open(nil, LayerNetwork, 0, FlagSendOnly)
handles <- h
errCh <- err
}()
}
for i := 0; i < 2; i++ {
for range 2 {
err := <-errCh
h := <-handles
require.NoError(t, err)
+1 -1
View File
@@ -48,7 +48,7 @@ type Address struct {
Timestamp int64
bits uint32
Reserved2 uint32
union [64]byte
_ [64]byte
}
var _ [80]byte = [unsafe.Sizeof(Address{})]byte{}