11import { lookup as lookupPublisher } from "@pythnetwork/known-publishers" ;
22import { notFound } from "next/navigation" ;
33
4+ import { PublishersCard } from "./publishers-card" ;
5+ import { getFeedsCached , getPublishersForFeedCached } from "../../server/pyth" ;
46import { getRankingsBySymbol } from "../../services/clickhouse" ;
57import {
68 Cluster ,
79 ClusterToName ,
8- getFeeds ,
9- getPublishersForFeed ,
1010} from "../../services/pyth" ;
1111import { getStatus } from "../../status" ;
1212import { PublisherIcon } from "../PublisherIcon" ;
1313import { PublisherTag } from "../PublisherTag" ;
14- import { PublishersCard } from "./publishers-card" ;
1514
1615type Props = {
1716 params : Promise < {
@@ -28,8 +27,8 @@ export const Publishers = async ({ params }: Props) => {
2827 pythnetPublishers ,
2928 pythtestConformancePublishers ,
3029 ] = await Promise . all ( [
31- getFeeds ( Cluster . Pythnet ) ,
32- getFeeds ( Cluster . PythtestConformance ) ,
30+ getFeedsCached ( Cluster . Pythnet ) ,
31+ getFeedsCached ( Cluster . PythtestConformance ) ,
3332 getPublishers ( Cluster . Pythnet , symbol ) ,
3433 getPublishers ( Cluster . PythtestConformance , symbol ) ,
3534 ] ) ;
@@ -87,7 +86,7 @@ export const PublishersLoading = () => <PublishersCard isLoading />;
8786
8887const getPublishers = async ( cluster : Cluster , symbol : string ) => {
8988 const [ publishers , rankings ] = await Promise . all ( [
90- getPublishersForFeed ( cluster , symbol ) ,
89+ getPublishersForFeedCached ( cluster , symbol ) ,
9190 getRankingsBySymbol ( symbol ) ,
9291 ] ) ;
9392
0 commit comments