-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix(server/v2/cometbft): wire app closer #22240
base: main
Are you sure you want to change the base?
Changes from 4 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 |
---|---|---|
|
@@ -59,7 +59,7 @@ func (s *RootStoreTestSuite) SetupTest() { | |
s.Require().NoError(err) | ||
|
||
pm := pruning.NewManager(sc, ss, nil, nil) | ||
rs, err := New(noopLog, ss, sc, pm, nil, nil) | ||
rs, err := New(dbm.NewMemDB(), noopLog, ss, sc, pm, nil, nil) | ||
s.Require().NoError(err) | ||
|
||
s.rootStore = rs | ||
|
@@ -84,7 +84,7 @@ func (s *RootStoreTestSuite) newStoreWithPruneConfig(config *store.PruningOption | |
|
||
pm := pruning.NewManager(sc, ss, config, config) | ||
|
||
rs, err := New(noopLog, ss, sc, pm, nil, nil) | ||
rs, err := New(dbm.NewMemDB(), noopLog, ss, sc, pm, nil, nil) | ||
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. Consistent change, but concerns remain about logger replacement. This change is consistent with the modification in |
||
s.Require().NoError(err) | ||
|
||
s.rootStore = rs | ||
|
@@ -93,7 +93,7 @@ func (s *RootStoreTestSuite) newStoreWithPruneConfig(config *store.PruningOption | |
func (s *RootStoreTestSuite) newStoreWithBackendMount(ss store.VersionedDatabase, sc store.Committer, pm *pruning.Manager) { | ||
noopLog := coretesting.NewNopLogger() | ||
|
||
rs, err := New(noopLog, ss, sc, pm, nil, nil) | ||
rs, err := New(dbm.NewMemDB(), noopLog, ss, sc, pm, nil, nil) | ||
s.Require().NoError(err) | ||
|
||
s.rootStore = rs | ||
|
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.
💡 Codebase verification
Inconsistency Detected in
NewConsensus
Function SignatureThe
NewConsensus
function is being called with an additionalappI.Close
parameter, but its signature does not reflect this change.NewConsensus
function signature missing theappI.Close
parameter.🔗 Analysis chain
LGTM. Verify consistency of
appI.Close
usage.The addition of
appI.Close
to theNewConsensus
function call enhances the application's lifecycle management. This change allows for graceful shutdown of the application.Please ensure that this change is consistent with the
NewConsensus
function signature and its usage across the codebase. Run the following script to verify:🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 1613