Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 28, 2023
1 parent 6e47308 commit 746e2ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libp2p.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export class Libp2pNode extends EventEmitter<Libp2pEvents> implements Libp2p {

// start any startables
await Promise.all(
this.services.map(service => service.start())
this.services.map(async service => await service.start())
)

await Promise.all(
Expand Down Expand Up @@ -331,7 +331,7 @@ export class Libp2pNode extends EventEmitter<Libp2pEvents> implements Libp2p {
)

await Promise.all(
this.services.map(service => service.stop())
this.services.map(async service => await service.stop())
)

await Promise.all(
Expand Down
2 changes: 1 addition & 1 deletion test/connection-manager/index.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ describe('libp2p.connections', () => {
})

afterEach(async () => {
await Promise.all(nodes.map((node) => node.stop()))
await Promise.all(nodes.map(async (node) => await node.stop()))

if (libp2p != null) {
await libp2p.stop()
Expand Down
2 changes: 1 addition & 1 deletion test/content-routing/content-routing.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('content-routing', () => {
})
})

after(() => node.stop())
after(async () => await node.stop())

it('.findProviders should return an error', async () => {
try {
Expand Down

0 comments on commit 746e2ea

Please sign in to comment.