Skip to content

Commit 4cf1121

Browse files
committed
git commit -s -m "docs(epp): fix stale comment on primaryDecodeEndpoint"
Signed-off-by: Dmitri Pikus <DPIKUS@il.ibm.com>
1 parent cd229c3 commit 4cf1121

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pkg/epp/requestcontrol/director.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ const (
6161
)
6262

6363
// primaryDecodeEndpoint returns the first endpoint chosen by the primary
64-
// profile, or nil when the result is empty or malformed. False-return reasons
65-
// are logged at V(logutil.DEBUG) to disambiguate misconfiguration from a real
66-
// cache miss.
64+
// profile, or nil when the result is nil, the primary profile is missing, or
65+
// it produced no endpoints. Each nil-return reason is logged at
66+
// V(logutil.DEBUG) so an unexpected nil here can be distinguished from a
67+
// healthy schedule with no endpoint.
6768
func primaryDecodeEndpoint(logger logr.Logger, result *fwksched.SchedulingResult) fwksched.Endpoint {
6869
debug := logger.V(logutil.DEBUG)
6970
if result == nil {

0 commit comments

Comments
 (0)