diff --git a/renter/renter.go b/renter/renter.go index 0824861..2944423 100644 --- a/renter/renter.go +++ b/renter/renter.go @@ -61,8 +61,14 @@ var Module = fx.Module("renter", fx.Invoke(func(r *RenterDefault) error { return r.init() }), - fx.Invoke(func(r *PriceTracker) error { - return r.init() + fx.Invoke(func(lc fx.Lifecycle, r *PriceTracker) error { + lc.Append(fx.Hook{ + OnStart: func(ctx context.Context) error { + return r.init() + + }, + }) + return nil }), ), )