Require *T for typeurl interaction
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
2
task.go
2
task.go
@@ -160,7 +160,7 @@ func (t *task) Wait(ctx context.Context) (uint32, error) {
|
||||
if err != nil {
|
||||
return UnknownExitStatus, err
|
||||
}
|
||||
if typeurl.Is(evt.Event, eventsapi.RuntimeEvent{}) {
|
||||
if typeurl.Is(evt.Event, &eventsapi.RuntimeEvent{}) {
|
||||
v, err := typeurl.UnmarshalAny(evt.Event)
|
||||
if err != nil {
|
||||
return UnknownExitStatus, err
|
||||
|
Reference in New Issue
Block a user