From 08628856693a84bdbbc13724f2202dfab7eafd2a Mon Sep 17 00:00:00 2001 From: Ashraf Fouda Date: Mon, 9 Mar 2026 15:04:52 +0200 Subject: [PATCH] docs for set pkg Signed-off-by: Ashraf Fouda --- pkg/set/int.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/set/int.go b/pkg/set/int.go index 3861e1f3..898c0b02 100644 --- a/pkg/set/int.go +++ b/pkg/set/int.go @@ -1,3 +1,7 @@ +// Package set provides a thread-safe set of unsigned integers. +// It is used by the network modules to track allocated ports and +// prevent conflicts when multiple workloads request port reservations +// concurrently. package set import ( @@ -5,8 +9,8 @@ import ( "sync" ) -// ErrConflict is return when trying to add a port -// in the set that is already present +// ErrConflict is returned when trying to add a value +// that is already present in the set. type ErrConflict struct { Port uint }