Skip to content

Commit

Permalink
Go (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos authored Apr 22, 2024
1 parent 5b49468 commit 4445c73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apps/price_pusher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/price-pusher",
"version": "6.6.2",
"version": "6.6.3",
"description": "Pyth Price Pusher",
"homepage": "https://pyth.network",
"main": "lib/index.js",
Expand Down
10 changes: 1 addition & 9 deletions apps/price_pusher/src/solana/solana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,13 @@ export class SolanaPricePusher implements IPricePusher {
private pythSolanaReceiver: PythSolanaReceiver,
private priceServiceConnection: PriceServiceConnection,
private shardId: number,
private computeUnitPriceMicroLamports: number,
private alreadySending: boolean = false
private computeUnitPriceMicroLamports: number
) {}

async updatePriceFeed(
priceIds: string[],
pubTimesToPush: number[]
): Promise<void> {
if (this.alreadySending) {
console.log(new Date(), "updatePriceFeed already in progress");
return;
}
this.alreadySending = true;
if (priceIds.length === 0) {
return;
}
Expand Down Expand Up @@ -106,10 +100,8 @@ export class SolanaPricePusher implements IPricePusher {
this.pythSolanaReceiver.wallet
);
console.log(new Date(), "updatePriceFeed successful");
this.alreadySending = false;
} catch (e: any) {
console.error(new Date(), "updatePriceFeed failed", e);
this.alreadySending = false;
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4445c73

Please sign in to comment.