Skip to content

Commit

Permalink
Merge pull request #23 from Xu-Wentao/dev
Browse files Browse the repository at this point in the history
typo: fix spell error
  • Loading branch information
wawa0210 authored Sep 12, 2024
2 parents 28f85bb + 5a266d3 commit 05be6fe
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 05be6fe

Please sign in to comment.