()
| 530 | } |
| 531 | |
| 532 | function runHooks () { |
| 533 | // start loading |
| 534 | fastify[kAvvioBoot]((err, done) => { |
| 535 | if (err || fastify[kState].started || fastify[kState].ready || fastify[kState].booting) { |
| 536 | manageErr(err) |
| 537 | } else { |
| 538 | fastify[kState].booting = true |
| 539 | hookRunnerApplication('onReady', fastify[kAvvioBoot], fastify, manageErr) |
| 540 | } |
| 541 | done() |
| 542 | }) |
| 543 | } |
| 544 | |
| 545 | function manageErr (err) { |
| 546 | // If the error comes out of Avvio's Error codes |
nothing calls this directly
no test coverage detected