simplify DI -- no need for the special key for builtin actor loading

This commit is contained in:
vyzo 2022-04-12 10:12:16 +03:00
parent 1f7c89d5d8
commit 93f1fac76b
2 changed files with 1 additions and 2 deletions

View File

@ -71,7 +71,6 @@ var (
ConnGaterKey = special{12} // libp2p option
DAGStoreKey = special{13} // constructor returns multiple values
ResourceManagerKey = special{14} // Libp2p option
BuiltinActorsKey = special{15} // builtin actors bundle loading
)
type invoke int

View File

@ -53,7 +53,7 @@ var ChainNode = Options(
// right manifest cid.
// This restriction will be lifted once we have the final actors v8 bundle and we know
// the manifest cid.
Override(BuiltinActorsKey, modules.LoadBultinActors),
Override(new(dtypes.BuiltinActorsLoaded), modules.LoadBultinActors),
// Consensus settings
Override(new(dtypes.DrandSchedule), modules.BuiltinDrandConfig),