refactor: push commands in to cmd and ev to root as library
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"go.uber.org/multierr"
|
||||
)
|
||||
|
||||
func Init(ctx context.Context, name string) (context.Context, func() error) {
|
||||
func Init(ctx context.Context, name string) (context.Context, func(context.Context) error) {
|
||||
ctx, span := Span(ctx)
|
||||
defer span.End()
|
||||
|
||||
@@ -21,7 +21,7 @@ func Init(ctx context.Context, name string) (context.Context, func() error) {
|
||||
|
||||
reverse(stop[:])
|
||||
|
||||
return ctx, func() error {
|
||||
return ctx, func(context.Context) error {
|
||||
log.Println("flushing logs...")
|
||||
errs := make([]error, len(stop))
|
||||
for i, fn := range stop {
|
||||
|
||||
Reference in New Issue
Block a user