diff --git a/internal/shutdown/order.go b/internal/shutdown/order.go index 4347b8ea..755ee7b2 100644 --- a/internal/shutdown/order.go +++ b/internal/shutdown/order.go @@ -16,7 +16,6 @@ type Order interface { type order struct { waves []Wave - total int // for logging only } func NewOrder() Order { diff --git a/internal/shutdown/routine.go b/internal/shutdown/routine.go index 492d37f3..110dfa53 100644 --- a/internal/shutdown/routine.go +++ b/internal/shutdown/routine.go @@ -13,17 +13,6 @@ type routine struct { timeout time.Duration } -func newRoutine(name string) (r routine, - ctx context.Context, done chan struct{}) { - ctx, cancel := context.WithCancel(context.Background()) - done = make(chan struct{}) - return routine{ - name: name, - cancel: cancel, - done: done, - }, ctx, done -} - func (r *routine) shutdown(ctx context.Context) (err error) { ctx, cancel := context.WithTimeout(ctx, r.timeout) defer cancel()