Skip to content
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 typo in function #5108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix typo in function #5108

wants to merge 2 commits into from

Conversation

futreall
Copy link

@futreall futreall commented Mar 1, 2025

accounts-db/src/accounts_db/geyser_plugin_utils.rs
set_geyser_plugin_notifer - set_geyser_plugin_notifier

account-decoder/src/parse_token.rs
id as a known - id is a known

@mergify mergify bot requested a review from a team March 1, 2025 14:50
@@ -141,7 +141,7 @@ pub mod tests {
};

impl AccountsDb {
pub fn set_geyser_plugin_notifer(&mut self, notifier: Option<AccountsUpdateNotifier>) {
pub fn set_geyser_plugin_notifier(&mut self, notifier: Option<AccountsUpdateNotifier>) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can not change public API without a version bump

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. However, we can do the following:

  • Add a new method without the spelling mistake (set_geyser_plugin_notifier)
  • Update the old method set_geyser_plugin_notifer to simply call the new method set_geyser_plugin_notifier
  • Add a deprecation warning to the old method, including mention that the function has been deprecated in v2.3

We can then rip out the function with incorrect spelling at a later date once we are shipping a sufficiently new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants