Skip to content

Commit

Permalink
A couple more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Jan 9, 2025
1 parent 3e52413 commit b7bc4e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { file } from 'mock-fs/lib/filesystem'

// 1048576 is the number of bytes in a block uploaded via unixfs
// Reference: packages/backend/node_modules/@helia/unixfs/src/commands/add.ts
const DEFAULT_CAT_BLOCK_CHUNK_SIZE = 1048576 * 10
const DEFAULT_CAT_BLOCK_CHUNK_SIZE = 1048576 * 5

@Injectable()
export class IpfsFileManagerService extends EventEmitter {
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/nest/libp2p/libp2p.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ export class Libp2pService extends EventEmitter {

this.libp2pInstance.addEventListener('connection:close', event => {
this.logger.warn(`Connection closing with ${event.detail.remotePeer}`)
event.detail.abort(new Error(`Connection closing with ${event.detail.remotePeer}`))
})

this.libp2pInstance.addEventListener('transport:close', event => {
Expand Down

0 comments on commit b7bc4e5

Please sign in to comment.