Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
VITALI BICOV committed Nov 23, 2023
1 parent c3df3c2 commit 3824746
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import os
import time
import base64
import struct

import asyncio
Expand Down Expand Up @@ -86,7 +85,6 @@ async def get_metrics():
).value
]

print(programData["authority"])
solana_authority.labels(authority=programData["authority"]).set(1)
solana_slot.labels(slot=programData["slot"]).set(1)
solana_treasury.labels(account=mainTreasuryAccount,main=True).set(int(mainTreasuryLamports))
Expand All @@ -101,7 +99,6 @@ async def logs():
subscription_id = first_resp[0].result
while True:
next_resp = await websocket.recv()
print(str(next_resp[0].result.value.err))
if str(next_resp[0].result.value.err) == "None":
solana_transactions_status.labels(status="Ok").inc()
else:
Expand All @@ -118,8 +115,6 @@ def main():
start_http_server(9000)
try:
main()
#asyncio.run(logs())
#asyncio.run(get_metrics())
except Exception as f:
print('main error: ', f)

0 comments on commit 3824746

Please sign in to comment.