Skip to content

Commit e35c0d1

Browse files
committed
fix: set settings on bootstrap when we start
1 parent 0734436 commit e35c0d1

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/index.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,11 @@ async function bootstrap(state) {
101101
const { taskID } = await client.deleteIndex(c.bootstrapIndexName);
102102
await bootstrapIndex.waitTask(taskID);
103103
log.info('⛷ Bootstrap: starting from the first doc');
104-
return (
105-
npm
106-
.info()
107-
// first time this launches, we need to remember the last seq our bootstrap can trust
108-
.then(({ seq }) =>
109-
stateManager.save({
110-
seq,
111-
})
112-
)
113-
.then(() => loop(state.bootstrapLastId))
114-
);
104+
const { seq } = await npm.info();
105+
// first time this launches, we need to remember the last seq our bootstrap can trust
106+
await stateManager.save({ seq });
107+
await setSettings(bootstrapIndex);
108+
return loop(state.bootstrapLastId);
115109
}
116110

117111
function loop(lastId) {

0 commit comments

Comments
 (0)