File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
third_party/pyth/price-service/src Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -82,20 +82,14 @@ export class WebSocketAPI {
82
82
return ;
83
83
}
84
84
85
+ const clients : Set < WebSocket > = this . priceFeedClients . get ( priceInfo . priceFeed . id ) ! ;
85
86
logger . info (
86
87
`Sending ${ priceInfo . priceFeed . id } price update to ${
87
- this . priceFeedClients . get ( priceInfo . priceFeed . id ) ! . size
88
- } clients`
88
+ clients . size
89
+ } clients: ${ Array . from ( clients . values ( ) ) . map ( ( ws , _idx , _arr ) => this . wsId . get ( ws ) ) } `
89
90
) ;
90
91
91
- for ( let client of this . priceFeedClients
92
- . get ( priceInfo . priceFeed . id ) !
93
- . values ( ) ) {
94
- logger . info (
95
- `Sending ${
96
- priceInfo . priceFeed . id
97
- } price update to client ${ this . wsId . get ( client ) } `
98
- ) ;
92
+ for ( let client of clients . values ( ) ) {
99
93
this . promClient ?. addWebSocketInteraction ( "server_update" , "ok" ) ;
100
94
101
95
let verbose = this . priceFeedClientsVerbosity
You can’t perform that action at this time.
0 commit comments