File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,7 @@ export async function getFeedsForPublisherRequest(
4848}
4949
5050export const getFeedsRequest = async ( cluster : Cluster ) => {
51- const url = new URL (
52- `/api/pyth/get-feeds` ,
53- await getHost ( ) ,
54- ) ;
51+ const url = new URL ( `/api/pyth/get-feeds` , await getHost ( ) ) ;
5552 url . searchParams . set ( "cluster" , ClusterToName [ cluster ] ) ;
5653 url . searchParams . set ( "excludePriceComponents" , "true" ) ;
5754
Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ export const getHost = async () => {
1818
1919 return `${ proto } ://${ host } ` ;
2020 }
21- }
21+ } ;
2222
2323class NoHostError extends Error {
2424 constructor ( ) {
25- super ( "Request had neither an `x-forwarded-host` header nor a `host` header" ) ;
25+ super (
26+ "Request had neither an `x-forwarded-host` header nor a `host` header" ,
27+ ) ;
2628 this . name = "NoHostError" ;
2729 }
28- }
30+ }
You can’t perform that action at this time.
0 commit comments