mv pkg/stopper pkg/stop

This makes most of the callsites stutter slightly less.
This commit is contained in:
Jimmy Zelinskie
2017-02-02 21:09:25 -05:00
parent 4d54980930
commit a4b08c021b
4 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ import (
"github.com/chihaya/chihaya/bittorrent"
"github.com/chihaya/chihaya/middleware"
"github.com/chihaya/chihaya/pkg/stopper"
"github.com/chihaya/chihaya/pkg/stop"
)
var (
@@ -114,7 +114,7 @@ func (h *hook) Stop() <-chan error {
log.Debug("attempting to shutdown JWT middleware")
select {
case <-h.closing:
return stopper.AlreadyStopped
return stop.AlreadyStopped
default:
}
c := make(chan error)