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";
4
4
import { Cluster } from "../../services/pyth" ;
5
5
6
6
export const getFeed = async ( params : Promise < { slug : string } > ) => {
7
- "use cache" ;
8
-
9
7
const [ { slug } , feeds ] = await Promise . all ( [ params , getFeedsCached ( Cluster . Pythnet ) ] ) ;
10
8
const symbol = decodeURIComponent ( slug ) ;
11
9
return {
Original file line number Diff line number Diff line change 1
1
import { lookup as lookupPublisher } from "@pythnetwork/known-publishers" ;
2
2
import { notFound } from "next/navigation" ;
3
3
4
- import { PublishersCard } from "./publishers-card" ;
4
+ import { getRankingsBySymbolCached } from '../../server/clickhouse' ;
5
5
import { getFeedsCached , getPublishersForFeedCached } from "../../server/pyth" ;
6
- import { getRankingsBySymbol } from "../../services/clickhouse" ;
7
6
import {
8
7
Cluster ,
9
8
ClusterToName ,
10
9
} from "../../services/pyth" ;
11
10
import { getStatus } from "../../status" ;
12
11
import { PublisherIcon } from "../PublisherIcon" ;
13
12
import { PublisherTag } from "../PublisherTag" ;
13
+ import { PublishersCard } from "./publishers-card" ;
14
14
15
15
type Props = {
16
16
params : Promise < {
@@ -87,7 +87,7 @@ export const PublishersLoading = () => <PublishersCard isLoading />;
87
87
const getPublishers = async ( cluster : Cluster , symbol : string ) => {
88
88
const [ publishers , rankings ] = await Promise . all ( [
89
89
getPublishersForFeedCached ( cluster , symbol ) ,
90
- getRankingsBySymbol ( symbol ) ,
90
+ getRankingsBySymbolCached ( symbol ) ,
91
91
] ) ;
92
92
93
93
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