Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/hcs/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var (
nextCallback uintptr
callbackMap = map[uintptr]*notifcationWatcherContext{}
callbackMap = map[uintptr]*notificationWatcherContext{}
callbackMapLock = sync.RWMutex{}

notificationWatcherCallback = syscall.NewCallback(notificationWatcher)
Expand Down Expand Up @@ -87,7 +87,7 @@ func (hn hcsNotification) String() string {

type notificationChannel chan error

type notifcationWatcherContext struct {
type notificationWatcherContext struct {
channels notificationChannels
handle vmcompute.HcsCallback

Expand Down
2 changes: 1 addition & 1 deletion internal/hcs/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (process *Process) Close() (err error) {
}

func (process *Process) registerCallback(ctx context.Context) error {
callbackContext := &notifcationWatcherContext{
callbackContext := &notificationWatcherContext{
channels: newProcessChannels(),
systemID: process.SystemID(),
processID: process.processID,
Expand Down
2 changes: 1 addition & 1 deletion internal/hcs/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func (computeSystem *System) Close() (err error) {
}

func (computeSystem *System) registerCallback(ctx context.Context) error {
callbackContext := &notifcationWatcherContext{
callbackContext := &notificationWatcherContext{
channels: newSystemChannels(),
systemID: computeSystem.id,
}
Expand Down