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: use solana-client pubsub lib instead of solana-shadow #97

Merged
merged 5 commits into from
Nov 30, 2023
Merged

Conversation

ali-bahjati
Copy link
Collaborator

Solana-shadow is not maintained anymore and doesn't work properly. It drops many updates and after a certain amount of latency drops all messages. We have been using Solana PubSub client in Hermes without any problem and there is no reason to stick with solana-shadow.

Solana-shadow is not maintained anymore and doesn't work properly.
It drops many updates and after a certain amount of latency drops all
messages. We have been using Solana PubSub client in Hermes without any
problem and there is no reason to stick with solana-shadow.
Comment on lines 484 to 502
if !ret {
debug!(self.logger, "Exporter: Attempted to publish price outside market hours";
"price_account" => key_from_id.to_string(),
"weekly_schedule" => format!("{:?}", weekly_schedule),
"utc_time" => now.format("%c").to_string(),
);
}

ret
if !ret {
debug!(self.logger, "Exporter: Attempted to publish price outside market hours";
"price_account" => key_from_id.to_string(),
"weekly_schedule" => format!("{:?}", weekly_schedule),
"utc_time" => now.format("%c").to_string(),
);
}

ret
} else {
// Note: This message is not an error. Some
// publishers have different permissions on
// primary/secondary networks
debug!(
self.logger,
"Exporter: Attempted to publish a price without permission, skipping";
"unpermissioned_price_account" => key_from_id.to_string(),
"permissioned_accounts" => format!("{:?}", self.our_prices)
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Formatting

src/agent/solana/oracle.rs Outdated Show resolved Hide resolved
src/agent/solana/oracle.rs Outdated Show resolved Hide resolved
src/agent/solana/oracle.rs Outdated Show resolved Hide resolved
src/agent/solana/oracle.rs Outdated Show resolved Hide resolved
src/agent/solana/oracle.rs Outdated Show resolved Hide resolved
@ali-bahjati ali-bahjati force-pushed the fix-ws branch 2 times, most recently from 25af1fd to 2d336e0 Compare November 30, 2023 14:27
@ali-bahjati ali-bahjati merged commit cf0159c into main Nov 30, 2023
2 checks passed
@ali-bahjati ali-bahjati deleted the fix-ws branch November 30, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants