We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7bdef5 commit a9dde65Copy full SHA for a9dde65
1 file changed
pkg/ddc/base/portallocator/random_allocator.go
@@ -54,6 +54,15 @@ func (r *RandomAllocator) Allocate(port int) error {
54
55
}
56
57
+// Release releases the resource associated with the given index.
58
+// For the RandomAllocator, no actual resource is allocated per index,
59
+// so this method does nothing and always returns a nil error.
60
+//
61
+// Parameters:
62
+// - i: the index of the resource to release (unused).
63
64
+// Returns:
65
+// - error: always nil, indicating success with no action.
66
func (r *RandomAllocator) Release(i int) error {
67
// no need to release
68
return nil
0 commit comments