File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -158,31 +158,25 @@ export class PythLazerSubscriber {
158158 }
159159
160160 async getLatestPriceMessage ( feedIds : number [ ] ) : Promise < string | undefined > {
161- console . log ( `pythLazer getLatestPriceMessage: ${ feedIds } ` ) ;
162- console . log ( `pythLazerData:${ feedIds [ 0 ] } ` ) ;
163161 if ( this . useHttpRequests ) {
164162 if ( feedIds . length === 1 && this . redisClient ) {
165163 const priceMessage = ( await this . redisClient . get (
166164 `pythLazerData:${ feedIds [ 0 ] } `
167165 ) ) as { data : string ; ts : number } | undefined ;
168166 if ( priceMessage ?. data && Date . now ( ) - priceMessage . ts < 5000 ) {
169- console . log ( `pythLazer price: redis: ${ priceMessage . data } ` ) ;
170167 return priceMessage . data ;
171168 }
172169 }
173170 for ( const url of this . httpEndpoints ) {
174171 const priceMessage = await this . fetchLatestPriceMessage ( url , feedIds ) ;
175172 if ( priceMessage ) {
176- console . log ( `pythLazer price: HTTP: ${ priceMessage } ` ) ;
177173 return priceMessage ;
178174 }
179175 }
180176 console . log ( `pythLazer price undefined` ) ;
181177 return undefined ;
182178 }
183- const res = this . feedIdChunkToPriceMessage . get ( this . hash ( feedIds ) ) ;
184- console . log ( `pythLazer price: feedIdChunkToPriceMessage: ${ res } ` ) ;
185- return res ;
179+ return this . feedIdChunkToPriceMessage . get ( this . hash ( feedIds ) ) ;
186180 }
187181
188182 async fetchLatestPriceMessage (
You can’t perform that action at this time.
0 commit comments