Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

geyser: add is_reload argument to on_load #33674

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

fanatid
Copy link
Contributor

@fanatid fanatid commented Oct 12, 2023

Problem

Plugins are not able to distinguish loading and reloading.

Summary of Changes

Add is_reload argument to on_load plugin function.

@mergify mergify bot added community Community contribution need:merge-assist labels Oct 12, 2023
@mergify mergify bot requested a review from a team October 12, 2023 14:03
@github-actions github-actions bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Oct 27, 2023
@github-actions github-actions bot closed this Nov 3, 2023
@lijunwangs
Copy link
Contributor

This changes the interface. Why does a plugin care about if it is reload or a new load?

@lijunwangs lijunwangs reopened this Nov 3, 2023
@lijunwangs lijunwangs self-requested a review November 3, 2023 08:12
@lijunwangs lijunwangs added the CI Pull Request is ready to enter CI label Nov 3, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Nov 3, 2023
@github-actions github-actions bot removed the stale [bot only] Added to stale content; results in auto-close after a week. label Nov 6, 2023
@fanatid
Copy link
Contributor Author

fanatid commented Nov 10, 2023

This changes the interface. Why does a plugin care about if it is reload or a new load?

The plugin can have a special logic for accounts from snapshot and will not work on reloading / loading through rpc.

Copy link
Contributor

@lijunwangs lijunwangs left a comment

Choose a reason for hiding this comment

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

Looks good

@lijunwangs lijunwangs added the CI Pull Request is ready to enter CI label Nov 14, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Nov 14, 2023
Copy link
Contributor

@lijunwangs lijunwangs left a comment

Choose a reason for hiding this comment

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

There are bunch of CI fmt failures, please correct

@fanatid
Copy link
Contributor Author

fanatid commented Nov 14, 2023

Updated!

@lijunwangs lijunwangs added the CI Pull Request is ready to enter CI label Nov 15, 2023
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Nov 15, 2023
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Merging #33674 (90acd9a) into master (71dcf77) will decrease coverage by 0.1%.
Report is 1 commits behind head on master.
The diff coverage is 100.0%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #33674     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         811      811             
  Lines      219628   219628             
=========================================
- Hits       179974   179926     -48     
- Misses      39654    39702     +48     

Copy link
Contributor

@lijunwangs lijunwangs left a comment

Choose a reason for hiding this comment

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

Looks good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution need:merge-assist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants