Skip to content

Commit 1322a7b

Browse files
committed
chore: fix incorrect comment
Signed-off-by: zjumathcode <[email protected]>
1 parent f650690 commit 1322a7b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

components/ws-daemon/pkg/iws/uidmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func WriteMapping(hostPID uint64, gid bool, mapping []*api.WriteIDMappingRequest
155155
return nil
156156
}
157157

158-
// findHosPID translates an in-container PID to the root PID namespace.
158+
// findHostPID translates an in-container PID to the root PID namespace.
159159
func (m *Uidmapper) findHostPID(containerPID, inContainerPID uint64) (uint64, error) {
160160
paths := []string{fmt.Sprint(containerPID)}
161161
seen := make(map[string]struct{})

components/ws-manager-mk2/controllers/workspace_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ func (r *WorkspaceReconciler) deleteSecret(ctx context.Context, name, namespace
566566
return err
567567
}
568568

569-
// errorLogConflict logs the error if it's a conflict, instead of returning it as a reconciler error.
570-
// This is to reduce noise in our error logging, as conflicts are to be expected.
569+
// errorResultLogConflict logs the error if it's a conflict, instead of returning it as a reconciler
570+
// error. This is to reduce noise in our error logging, as conflicts are to be expected.
571571
// For conflicts, instead a result with `Requeue: true` is returned, which has the same requeuing
572572
// behaviour as returning an error.
573573
func errorResultLogConflict(log logr.Logger, err error) (ctrl.Result, error) {

components/ws-manager-mk2/service/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ func (subs *subscriptions) DropSubscriber(dropouts []string) {
14611461
}
14621462
}
14631463

1464-
// onChange is the default OnChange implementation which publishes workspace status updates to subscribers
1464+
// OnChange is the default OnChange implementation which publishes workspace status updates to subscribers
14651465
func (subs *subscriptions) OnChange(ctx context.Context, status *wsmanapi.WorkspaceStatus) {
14661466
log := log.WithFields(log.OWI(status.Metadata.Owner, status.Metadata.MetaId, status.Id))
14671467

components/ws-proxy/pkg/proxy/routes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ type fakeWsInfoProvider struct {
850850
infos []common.WorkspaceInfo
851851
}
852852

853-
// GetWsInfoByID returns the workspace for the given ID.
853+
// WorkspaceInfo returns the workspace for the given ID.
854854
func (p *fakeWsInfoProvider) WorkspaceInfo(workspaceID string) *common.WorkspaceInfo {
855855
for _, nfo := range p.infos {
856856
if nfo.WorkspaceID == workspaceID {

0 commit comments

Comments
 (0)