File tree 1 file changed +5
-11
lines changed
1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -101,17 +101,11 @@ async function bootstrap(state) {
101
101
const { taskID } = await client . deleteIndex ( c . bootstrapIndexName ) ;
102
102
await bootstrapIndex . waitTask ( taskID ) ;
103
103
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 ) ;
115
109
}
116
110
117
111
function loop ( lastId ) {
You can’t perform that action at this time.
0 commit comments