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 {
8282 return ;
8383 }
8484
85+ const clients : Set < WebSocket > = this . priceFeedClients . get ( priceInfo . priceFeed . id ) ! ;
8586 logger . info (
8687 `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 ) ) } `
8990 ) ;
9091
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 ( ) ) {
9993 this . promClient ?. addWebSocketInteraction ( "server_update" , "ok" ) ;
10094
10195 let verbose = this . priceFeedClientsVerbosity
You can’t perform that action at this time.
0 commit comments