MCPcopy
hub / github.com/fastify/fastify / runHooks

Function runHooks

fastify.js:532–543  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

manageErrFunction · 0.85
hookRunnerApplicationFunction · 0.85
doneFunction · 0.50

Tested by

no test coverage detected