preload loads both schemas before gh starts, so a first-time download doesn't happen while gh waits for a response.
()
| 100 | // preload loads both schemas before gh starts, so a first-time download |
| 101 | // doesn't happen while gh waits for a response. |
| 102 | func (c *checker) preload() { |
| 103 | _, _ = c.graphQL() |
| 104 | _, _ = c.rest() |
| 105 | } |
| 106 | |
| 107 | // schemaFiles describes each schema the checker tried to load. |
| 108 | func (c *checker) schemaFiles() []schemaFile { |