Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Norman <1992255+2color@users.noreply.github.com>
  • Loading branch information
SgtPooki and 2color committed May 24, 2024
1 parent e5d6ae4 commit 967a4e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gateway-conformance/src/fixtures/basic-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ async function callVerifiedFetch (req: IncomingMessage, res: Response, { serverP
} else {
// read the body of the response and write it to the response from the server
const reader = resp.body.getReader()
reader.pipeTo(res)
while (true) {
const { done, value } = await reader.read()
if (done) {
Expand Down Expand Up @@ -177,7 +178,7 @@ async function callVerifiedFetch (req: IncomingMessage, res: Response, { serverP
}
}

export async function startBasicServer ({ kuboGateway, serverPort, IPFS_NS_MAP }: BasicServerOptions): Promise<() => Promise<void>> {
export async function startVerifiedFetchGateway ({ kuboGateway, serverPort, IPFS_NS_MAP }: BasicServerOptions): Promise<() => Promise<void>> {
const staticDnsAgent = new Agent({
connect: {
lookup: (_hostname, _options, callback) => { callback(null, [{ address: '0.0.0.0', family: 4 }]) }
Expand Down

0 comments on commit 967a4e3

Please sign in to comment.