We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 242a0bd commit 2ea0d39Copy full SHA for 2ea0d39
1 file changed
pkg/ddc/base/portallocator/bitmap_allocator.go
@@ -35,6 +35,9 @@ func (b *BitMapAllocator) needResetReservedPorts() bool {
35
return true
36
}
37
38
+// newBitMapAllocator creates a bitmap-based port allocator for the given port range.
39
+// It initializes the underlying allocator and returns a BitMapAllocator instance.
40
+// It returns an error if the allocator cannot be created.
41
func newBitMapAllocator(pr *net.PortRange, log logr.Logger) (BatchAllocatorInterface, error) {
42
// TODO passing offset value.
43
alloc, err := portallocator.New(*pr, func(max int, rangeSpec string, offset int) (allocator.Interface, error) {
0 commit comments