We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46dc603 commit 9b8c3efCopy full SHA for 9b8c3ef
pkg/set/int.go
@@ -1,12 +1,16 @@
1
+// Package set provides a thread-safe set of unsigned integers.
2
+// It is used by the network modules to track allocated ports and
3
+// prevent conflicts when multiple workloads request port reservations
4
+// concurrently.
5
package set
6
7
import (
8
"fmt"
9
"sync"
10
)
11
-// ErrConflict is return when trying to add a port
-// in the set that is already present
12
+// ErrConflict is returned when trying to add a value
13
+// that is already present in the set.
14
type ErrConflict struct {
15
Port uint
16
}
0 commit comments