-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(runtime/v2): rm singleton storebuilder scope #22204
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,6 @@ func AppConfig() depinject.Config { | |
codec.ProvideAddressCodec, | ||
codec.ProvideProtoCodec, | ||
codec.ProvideLegacyAmino, | ||
runtime.ProvideSingletonScopedStoreBuilder, | ||
), | ||
depinject.Invoke( | ||
std.RegisterInterfaces, | ||
|
@@ -79,19 +78,20 @@ func AppConfig() depinject.Config { | |
func NewSimApp[T transaction.Tx]( | ||
logger log.Logger, | ||
viper *viper.Viper, | ||
storeBuilder root.Builder, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Action Required: Several instances of
🔗 Analysis chainLGTM: Addition of The addition of the To ensure this change is consistently applied, please run the following script to check for any occurrences of 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Find all occurrences of NewSimApp function calls in the codebase
# Expect: All occurrences should have the new storeBuilder parameter
rg --type go -A 5 'NewSimApp\s*\('
Length of output: 7126 |
||
) *SimApp[T] { | ||
var ( | ||
app = &SimApp[T]{} | ||
appBuilder *runtime.AppBuilder[T] | ||
storeBuilder root.Builder | ||
err error | ||
app = &SimApp[T]{} | ||
appBuilder *runtime.AppBuilder[T] | ||
err error | ||
|
||
// merge the AppConfig and other configuration in one config | ||
appConfig = depinject.Configs( | ||
AppConfig(), | ||
depinject.Supply( | ||
logger, | ||
viper, | ||
storeBuilder, | ||
|
||
// ADVANCED CONFIGURATION | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here storeBuilder is injected and supplied. We should remove the inject one.