[Sessions] chore: Use depinject for sessions mgr construction #175
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Human Summary
Use depinject to construct
relayerSessionsManager
.AI Summary
Summary generated by Reviewpad on 09 Nov 23 23:19 UTC
This pull request introduces several changes.
The first patch (1/3) adds a new file
options.go
to thepkg/relayer/session
package, which contains a new functionWithStoresDirectory
. This function sets the path on disk where KVStore data files are created.The second patch (2/3) adds a small improvement to the
WithStoresDirectory
function. It changes the error message when the session tree store path already exists.The third patch (3/3) improves the readability of the error messages in the
errors.go
file. It updates the error codespace and the error messages to make them more descriptive. It also updates the error message when the session tree store path already exists.Overall, these changes aim to enhance the management of sessions and their corresponding data files in the
relayer
package.Type of change
Select one or more:
Testing
make go_develop_and_test
Sanity Checklist