()
| 54 | // We only want statistics if the priming needs to occur, so let's wrap the |
| 55 | // real method and return early [without statistics] whenever possible |
| 56 | export default async function warmServerWrapper() { |
| 57 | // Handle receiving multiple calls to this method from multiple page requests |
| 58 | // by holding the in-progress Promise and returning it instead of allowing |
| 59 | // the server to actually load all of the files multiple times. |
| 60 | if (!promisedWarmServer) { |
| 61 | promisedWarmServer = dog.warmServer() |
| 62 | } |
| 63 | return promisedWarmServer |
| 64 | } |
nothing calls this directly
no outgoing calls
no test coverage detected