Hotfix: remove unused code
This commit is contained in:
@@ -16,7 +16,6 @@ type Order interface {
|
|||||||
|
|
||||||
type order struct {
|
type order struct {
|
||||||
waves []Wave
|
waves []Wave
|
||||||
total int // for logging only
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewOrder() Order {
|
func NewOrder() Order {
|
||||||
|
|||||||
@@ -13,17 +13,6 @@ type routine struct {
|
|||||||
timeout time.Duration
|
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) {
|
func (r *routine) shutdown(ctx context.Context) (err error) {
|
||||||
ctx, cancel := context.WithTimeout(ctx, r.timeout)
|
ctx, cancel := context.WithTimeout(ctx, r.timeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user