Skip to content

Commit

Permalink
Update ShutdownChan to be receive only.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Jul 27, 2020
1 parent 0389086 commit 0f8295b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/elastic-agent/pkg/agent/application/reexec/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type ExecManager interface {

// ShutdownChan returns the shutdown channel the main function should use to
// handle shutdown of the current running application.
ShutdownChan() chan bool
ShutdownChan() <-chan bool

// ShutdownComplete gets called from the main function once ShutdownChan channel
// has been closed and the running application has completely shutdown.
Expand Down Expand Up @@ -70,7 +70,7 @@ func (m *manager) ReExec() {
}()
}

func (m *manager) ShutdownChan() chan bool {
func (m *manager) ShutdownChan() <-chan bool {
return m.trigger
}

Expand Down

0 comments on commit 0f8295b

Please sign in to comment.