Skip to content

Commit 995a4a9

Browse files
authored
fix: await opening blockstore (#366)
Can cause unhandled promise rejections otherwise
1 parent 150dba8 commit 995a4a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
steps:
7575
- uses: actions/checkout@v2
7676
with:
77-
fetch-depth: ${{ github.event.pull_request.commits }}
77+
fetch-depth: 0
7878
- uses: actions/setup-node@v1
7979
with:
8080
node-version: ${{ matrix.node }}
@@ -114,7 +114,7 @@ jobs:
114114
steps:
115115
- uses: actions/checkout@v2
116116
with:
117-
fetch-depth: ${{ github.event.pull_request.commits }}
117+
fetch-depth: 0
118118
- uses: actions/setup-node@v1
119119
with:
120120
node-version: 16
@@ -151,7 +151,7 @@ jobs:
151151
# steps:
152152
# - uses: actions/checkout@v2
153153
# with:
154-
# fetch-depth: ${{ github.event.pull_request.commits }}
154+
# fetch-depth: 0
155155
# - uses: actions/setup-node@v1
156156
# with:
157157
# node-version: 16

packages/ipfs-repo/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class Repo {
167167
await this.datastore.open()
168168

169169
log('creating blocks')
170-
this.blocks.open()
170+
await this.blocks.open()
171171

172172
log('creating keystore')
173173
await this.keys.open()

0 commit comments

Comments
 (0)