File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ type Props = {
22
22
export const Publishers = async ( { params } : Props ) => {
23
23
const { slug } = await params ;
24
24
const symbol = decodeURIComponent ( slug ) ;
25
+ const start = Date . now ( ) ;
25
26
const [
26
27
pythnetFeeds ,
27
28
pythtestConformanceFeeds ,
@@ -33,6 +34,9 @@ export const Publishers = async ({ params }: Props) => {
33
34
getPublishers ( Cluster . Pythnet , symbol ) ,
34
35
getPublishers ( Cluster . PythtestConformance , symbol ) ,
35
36
] ) ;
37
+ const end = Date . now ( ) ;
38
+ // eslint-disable-next-line no-console
39
+ console . info ( `Publishers took ${ ( end - start ) . toString ( ) } ms` ) ;
36
40
const feed = pythnetFeeds . find ( ( feed ) => feed . symbol === symbol ) ;
37
41
const testFeed = pythtestConformanceFeeds . find (
38
42
( feed ) => feed . symbol === symbol ,
Original file line number Diff line number Diff line change @@ -42,4 +42,4 @@ const _getPublishers = createChunkedCacheFetcher(async (cluster: Cluster) => {
42
42
43
43
export const getPublishersCached = async ( cluster : Cluster ) => {
44
44
return fetchAllChunks < ReturnType < typeof getPublishers > , [ Cluster ] > ( _getPublishers , cluster ) ;
45
- } ;
45
+ }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const fetchPublishers = createChunkedCacheFetcher(async (cluster: Cluster) => {
60
60
result [ key ] = price ?. priceComponents . map ( ( { publisher } ) => publisher . toBase58 ( ) ) ?? [ ] ;
61
61
}
62
62
return result ;
63
- } , 'getPublishers ' ) ;
63
+ } , 'fetchPublishers ' ) ;
64
64
65
65
export const getFeedsCached = async ( cluster : Cluster ) => {
66
66
return fetchAllChunks < z . infer < typeof priceFeedsSchema > , [ Cluster ] > ( fetchFeeds , cluster )
You can’t perform that action at this time.
0 commit comments