-
Notifications
You must be signed in to change notification settings - Fork 64
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
Accounts support #327
Accounts support #327
Conversation
…llbacks for accounts
543e39b
to
0ec2521
Compare
broadcast::channel::<AccountNotificationMessage>(128); | ||
|
||
let jh: AnyhowJoinHandle = tokio::spawn(async move { | ||
loop { |
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.
reconnect loops should always be throttled to prevent overloading the system with crash-loop
}) | ||
} | ||
|
||
pub fn create_grpc_account_streaming( |
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.
pls comment somewhere how much RAM an "account" item requires
match update { | ||
UpdateOneof::Account(account) => { | ||
if let Some(account_data) = account.account { | ||
let account_pk_bytes: [u8; 32] = account_data |
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.
consider different abbreviation for pubkey in account_pk
; maybe account_key
or account_pubkey
No description provided.