Skip to content

Commit 4445c73

Browse files
authored
Go (#1489)
1 parent 5b49468 commit 4445c73

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

apps/price_pusher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/price-pusher",
3-
"version": "6.6.2",
3+
"version": "6.6.3",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

apps/price_pusher/src/solana/solana.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,13 @@ export class SolanaPricePusher implements IPricePusher {
5959
private pythSolanaReceiver: PythSolanaReceiver,
6060
private priceServiceConnection: PriceServiceConnection,
6161
private shardId: number,
62-
private computeUnitPriceMicroLamports: number,
63-
private alreadySending: boolean = false
62+
private computeUnitPriceMicroLamports: number
6463
) {}
6564

6665
async updatePriceFeed(
6766
priceIds: string[],
6867
pubTimesToPush: number[]
6968
): Promise<void> {
70-
if (this.alreadySending) {
71-
console.log(new Date(), "updatePriceFeed already in progress");
72-
return;
73-
}
74-
this.alreadySending = true;
7569
if (priceIds.length === 0) {
7670
return;
7771
}
@@ -106,10 +100,8 @@ export class SolanaPricePusher implements IPricePusher {
106100
this.pythSolanaReceiver.wallet
107101
);
108102
console.log(new Date(), "updatePriceFeed successful");
109-
this.alreadySending = false;
110103
} catch (e: any) {
111104
console.error(new Date(), "updatePriceFeed failed", e);
112-
this.alreadySending = false;
113105
return;
114106
}
115107
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)