Skip to content

Commit 5679a23

Browse files
committed
docs.
1 parent 98d256a commit 5679a23

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

hcloud/util.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import (
3030
corev1 "k8s.io/api/core/v1"
3131
)
3232

33+
// robotServerListForceRefreshClient is implemented by Robot clients that can
34+
// bypass their cache timeout and reload the server list immediately.
3335
type robotServerListForceRefreshClient interface {
3436
ServerGetListForceRefresh() ([]models.Server, error)
3537
}
@@ -81,6 +83,7 @@ func getRobotServerByName(c robotclient.Client, node *corev1.Node) (server *mode
8183
}
8284
}
8385

86+
// Only the cached Robot client can bypass its timeout and reload immediately.
8487
forceRefreshClient, ok := c.(robotServerListForceRefreshClient)
8588
if !ok {
8689
return nil, nil

0 commit comments

Comments
 (0)