hook a great context in the sky to satisfy DI; sigh...
This commit is contained in:
parent
6bca8216bb
commit
1e07cc6a5a
@ -161,6 +161,12 @@ func defaults() []Option {
|
||||
}),
|
||||
|
||||
Override(new(dtypes.ShutdownChan), make(chan struct{})),
|
||||
|
||||
// the great context in the sky, otherwise we can't DI build genesis; there has to be a better
|
||||
// solution than this hack.
|
||||
Override(new(context.Context), func(lc fx.Lifecycle, mctx helpers.MetricsCtx) context.Context {
|
||||
return helpers.LifecycleCtx(mctx, lc)
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user