Compare commits
2 Commits
acda3fc5fe
...
f41a68b3df
Author | SHA1 | Date |
---|---|---|
|
f41a68b3df | |
|
ed6f39bae8 |
3
set.go
3
set.go
|
@ -18,6 +18,7 @@ import (
|
|||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
@ -395,7 +396,7 @@ func (cc *Conn) SetDeleteElements(s *Set, vals []SetElement) error {
|
|||
// maxElemBatchSize is the maximum size in bytes of encoded set elements which
|
||||
// are sent in one netlink message. The size field of a netlink attribute is a
|
||||
// uint16, and 1024 bytes is more than enough for the per-message headers.
|
||||
const maxElemBatchSize = 0x10000 - 1024
|
||||
const maxElemBatchSize = math.MaxUint16 - 1024
|
||||
|
||||
func (cc *Conn) appendElemList(s *Set, vals []SetElement, hdrType uint16) error {
|
||||
if len(vals) == 0 {
|
||||
|
|
Loading…
Reference in New Issue