Narrow destroy events as well.

This commit is contained in:
Pat Gavlin 2017-10-13 10:12:09 -07:00
parent 73bb5851c8
commit aaf46c12f4

View file

@ -15,7 +15,7 @@ type DestroyOptions struct {
Summary bool
}
func (eng *Engine) Destroy(environment tokens.QName, events chan Event, opts DestroyOptions) error {
func (eng *Engine) Destroy(environment tokens.QName, events chan<- Event, opts DestroyOptions) error {
contract.Require(environment != tokens.QName(""), "environment")
info, err := eng.planContextFromEnvironment(environment, opts.Package)