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(
48
48
}
49
49
50
50
export 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 ( ) ) ;
55
52
url . searchParams . set ( "cluster" , ClusterToName [ cluster ] ) ;
56
53
url . searchParams . set ( "excludePriceComponents" , "true" ) ;
57
54
Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ export const getHost = async () => {
18
18
19
19
return `${ proto } ://${ host } ` ;
20
20
}
21
- }
21
+ } ;
22
22
23
23
class NoHostError extends Error {
24
24
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
+ ) ;
26
28
this . name = "NoHostError" ;
27
29
}
28
- }
30
+ }
You can’t perform that action at this time.
0 commit comments