chanotify should use interface{} keys
Fixes #79. Signed-off-by: Burcu Dogan <jbd@golang.org>
This commit is contained in:
parent
85bc51df33
commit
bc4f1aae01
4 changed files with 17 additions and 17 deletions
|
@ -50,7 +50,7 @@ func New(id, stateDir string, tasks chan *StartTask, oom bool) (*Supervisor, err
|
|||
go func() {
|
||||
for id := range s.notifier.Chan() {
|
||||
e := NewEvent(OOMEventType)
|
||||
e.ID = id
|
||||
e.ID = id.(string)
|
||||
s.SendEvent(e)
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue