Skip to content

Commit

Permalink
typo: fix spell error
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwentao committed Sep 9, 2024
1 parent 14460e1 commit 5a266d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/plugin/vgpu/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *DeviceRegister) apiDevices() *[]*util.DeviceInfo {
return &res
}

func (r *DeviceRegister) RegistrInAnnotation() error {
func (r *DeviceRegister) RegisterInAnnotation() error {
devices := r.apiDevices()
annos := make(map[string]string)
node, err := util.GetNode(config.NodeName)
Expand All @@ -97,7 +97,7 @@ func (r *DeviceRegister) RegistrInAnnotation() error {
func (r *DeviceRegister) WatchAndRegister() {
klog.Infof("into WatchAndRegister")
for {
err := r.RegistrInAnnotation()
err := r.RegisterInAnnotation()
if err != nil {
klog.Errorf("register error, %v", err)
time.Sleep(time.Second * 5)
Expand Down

0 comments on commit 5a266d3

Please sign in to comment.