File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import { getFeedsCached } from "../../server/pyth";
44import { Cluster } from "../../services/pyth" ;
55
66export const getFeed = async ( params : Promise < { slug : string } > ) => {
7- "use cache" ;
8-
97 const [ { slug } , feeds ] = await Promise . all ( [ params , getFeedsCached ( Cluster . Pythnet ) ] ) ;
108 const symbol = decodeURIComponent ( slug ) ;
119 return {
Original file line number Diff line number Diff line change 11import { lookup as lookupPublisher } from "@pythnetwork/known-publishers" ;
22import { notFound } from "next/navigation" ;
33
4- import { PublishersCard } from "./publishers-card" ;
4+ import { getRankingsBySymbolCached } from '../../server/clickhouse' ;
55import { getFeedsCached , getPublishersForFeedCached } from "../../server/pyth" ;
6- import { getRankingsBySymbol } from "../../services/clickhouse" ;
76import {
87 Cluster ,
98 ClusterToName ,
109} from "../../services/pyth" ;
1110import { getStatus } from "../../status" ;
1211import { PublisherIcon } from "../PublisherIcon" ;
1312import { PublisherTag } from "../PublisherTag" ;
13+ import { PublishersCard } from "./publishers-card" ;
1414
1515type Props = {
1616 params : Promise < {
@@ -87,7 +87,7 @@ export const PublishersLoading = () => <PublishersCard isLoading />;
8787const getPublishers = async ( cluster : Cluster , symbol : string ) => {
8888 const [ publishers , rankings ] = await Promise . all ( [
8989 getPublishersForFeedCached ( cluster , symbol ) ,
90- getRankingsBySymbol ( symbol ) ,
90+ getRankingsBySymbolCached ( symbol ) ,
9191 ] ) ;
9292
9393 return (
Original file line number Diff line number Diff line change 1+
2+ import { getRankingsBySymbol } from "../services/clickhouse" ;
3+
4+ export const getRankingsBySymbolCached = async ( symbol : string ) => {
5+ "use cache" ;
6+ return getRankingsBySymbol ( symbol ) ;
7+ } ;
You can’t perform that action at this time.
0 commit comments