Skip to content

Commit

Permalink
chore: fix build after applying pr suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed May 24, 2024
1 parent 2be475c commit f9bfa62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/gateway-conformance/.aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
const IPFS_NS_MAP = await loadKuboFixtures(repoPath)
const kuboGateway = gatewayUrl

const { startBasicServer } = await import('./dist/src/fixtures/basic-server.js')
const { startVerifiedFetchGateway } = await import('./dist/src/fixtures/basic-server.js')
const stopBasicServer = await startVerifiedFetchGateway({
serverPort: SERVER_PORT,
kuboGateway,
Expand Down
4 changes: 2 additions & 2 deletions packages/gateway-conformance/src/demo-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { logger } from '@libp2p/logger'
import getPort from 'aegir/get-port'
import { startBasicServer } from './fixtures/basic-server.js'
import { startVerifiedFetchGateway } from './fixtures/basic-server.js'
import { createKuboNode } from './fixtures/create-kubo.js'
import { loadKuboFixtures } from './fixtures/kubo-mgmt.js'

Expand All @@ -17,7 +17,7 @@ const kuboGateway = gatewayUrl
await controller.start()
const IPFS_NS_MAP = await loadKuboFixtures(repoPath)

const stopServer = await startBasicServer({
const stopServer = await startVerifiedFetchGateway({
serverPort: SERVER_PORT,
kuboGateway,
IPFS_NS_MAP
Expand Down
1 change: 0 additions & 1 deletion packages/gateway-conformance/src/fixtures/basic-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ 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

0 comments on commit f9bfa62

Please sign in to comment.