}
err := d.ensureNotDeleted()
if err != nil {
return err
}
// History is too large, do not accept new updates until wf CaNs.
// Since this needs workflow context we cannot do it in validators.
return temporal.NewApplicationError(errLongHistory, errLongHistory)
}
}