From 94c54a9d844ed27dd5febf6f3097d5804f4bc1fa Mon Sep 17 00:00:00 2001 From: Dolf Schimmel Date: Fri, 22 Sep 2017 02:25:10 +0200 Subject: [PATCH] Change GracefulStop into a RO channel --- migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate.go b/migrate.go index 58414e8f..93abee32 100644 --- a/migrate.go +++ b/migrate.go @@ -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