Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/ddc/base/portallocator/bitmap_allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ type BitMapAllocator struct {
alloc *portallocator.PortAllocator
log logr.Logger
}

// needResetReservedPorts reports whether the bitmap allocator needs to reset

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit: the blank line between the BitMapAllocator struct's closing } and the new godoc block was removed, so the comment now runs straight into the type declaration. Could you keep a blank line here so the doc comment stays visually attached to needResetReservedPorts rather than to the struct? The wording of the comment itself is fine.

// its reserved port state before allocating ports.
func (b *BitMapAllocator) needResetReservedPorts() bool {
return true
}
Expand Down
Loading