Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

Change GracefulStop into a RO channel #282

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Migrate struct {
// GracefulStop accepts `true` and will stop executing migrations
// as soon as possible at a safe break point, so that the database
// is not corrupted.
GracefulStop chan bool
GracefulStop <-chan bool
isGracefulStop bool

isLockedMu *sync.Mutex
Expand Down