hook a great context in the sky to satisfy DI; sigh...

This commit is contained in:
vyzo 2021-12-14 16:57:09 +02:00 committed by Jennifer Wang
parent 6bca8216bb
commit 1e07cc6a5a

View File

@ -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)
}),
}
}