improved dlob ws rotation (#291)

* remove grpc impl, use sdk grpc OrderSubscriber

* add log if both USE_WEBSOCKET and USE_GRPC are provided

* Nour/improved rotation (#290)

* improved rotation

* fix bugs

* only parse slot if necessary

* add metrics for ws source

* add select by recent slot to utils

* fix solana web3.js version

---------

Co-authored-by: wphan <william@drift.trade>

---------

Co-authored-by: wphan <william@drift.trade>
This commit is contained in:
moosecat
2024-12-03 13:47:35 -08:00
committed by GitHub
parent 2f3f9f1c40
commit 5888585977
12 changed files with 364 additions and 696 deletions

View File

@@ -14,7 +14,7 @@
"@opentelemetry/sdk-node": "^0.31.0",
"@project-serum/anchor": "^0.19.1-beta.1",
"@project-serum/serum": "^0.13.65",
"@solana/web3.js": "^1.73.3",
"@solana/web3.js": "1.95.2",
"@triton-one/yellowstone-grpc": "^0.3.0",
"@types/redis": "^4.0.11",
"@types/ws": "^8.5.8",