refactor(sns): Move upgrade-steps-related functions to their own file #2836
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.
This PR moves
temporarily_lock_refresh_cached_upgrade_steps
,should_refresh_cached_upgrade_steps
, andshould_refresh_cached_upgrade_steps
into the already existingcached_upgrade_steps.rs
file. The benefit of this is improved organization – pretty much all the upgrade-steps-related stuff is now in one small file.Next PR →
Note
We don't do this very often in SNS governance, but I think it would be a good habit to get into. These giant files we have are intimidating and make it hard to find what you're looking for. Another case where we do this currently is in
upgrade_journal.rs