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

feat: rm "Error while parsing account" logs #84

Merged
merged 4 commits into from
Jan 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bring back Error while parsing account
  • Loading branch information
RequescoS committed Jan 24, 2024
commit d090031ad7d70e9b44d30d95d4ca42fc749c3ef9
24 changes: 14 additions & 10 deletions nft_ingester/src/message_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,20 @@ impl MessageHandler {
) -> Result<(), IngesterError> {
let acc_parse_result = self.token_acc_parser.handle_account(account_info);

if let Ok(acc_parsed) = acc_parse_result {
let concrete = acc_parsed.result_type();

match concrete {
ProgramParseResult::TokenProgramAccount(parsing_result) => {
self.write_spl_accounts_models_to_buffer(account_info, parsing_result)
.await
}
_ => debug!("\nUnexpected message\n"),
};
match acc_parse_result {
Ok(acc_parsed) => {
let concrete = acc_parsed.result_type();
match concrete {
ProgramParseResult::TokenProgramAccount(parsing_result) => {
self.write_spl_accounts_models_to_buffer(account_info, parsing_result)
.await
}
_ => debug!("\nUnexpected message\n"),
};
}
Err(e) => {
warn!("Error while parsing account: {:?}", e);
}
}

Ok(())
Expand Down
Loading