diff --git a/internal/hcs/callback.go b/internal/hcs/callback.go index cebbe75ad4..d13772b030 100644 --- a/internal/hcs/callback.go +++ b/internal/hcs/callback.go @@ -13,7 +13,7 @@ import ( var ( nextCallback uintptr - callbackMap = map[uintptr]*notifcationWatcherContext{} + callbackMap = map[uintptr]*notificationWatcherContext{} callbackMapLock = sync.RWMutex{} notificationWatcherCallback = syscall.NewCallback(notificationWatcher) @@ -87,7 +87,7 @@ func (hn hcsNotification) String() string { type notificationChannel chan error -type notifcationWatcherContext struct { +type notificationWatcherContext struct { channels notificationChannels handle vmcompute.HcsCallback diff --git a/internal/hcs/process.go b/internal/hcs/process.go index b74389eca2..2707a1d214 100644 --- a/internal/hcs/process.go +++ b/internal/hcs/process.go @@ -414,7 +414,7 @@ func (process *Process) Close() (err error) { } func (process *Process) registerCallback(ctx context.Context) error { - callbackContext := ¬ifcationWatcherContext{ + callbackContext := ¬ificationWatcherContext{ channels: newProcessChannels(), systemID: process.SystemID(), processID: process.processID, diff --git a/internal/hcs/system.go b/internal/hcs/system.go index 221f1c7fbc..e2679f7b92 100644 --- a/internal/hcs/system.go +++ b/internal/hcs/system.go @@ -554,7 +554,7 @@ func (computeSystem *System) Close() (err error) { } func (computeSystem *System) registerCallback(ctx context.Context) error { - callbackContext := ¬ifcationWatcherContext{ + callbackContext := ¬ificationWatcherContext{ channels: newSystemChannels(), systemID: computeSystem.id, }