getHubInfo returns hub info from daemon state. If daemon isn't running, falls back to a fresh scan.
(root string)
| 98 | // getHubInfo returns hub info from daemon state. |
| 99 | // If daemon isn't running, falls back to a fresh scan. |
| 100 | func getHubInfo(root string) *hubInfo { |
| 101 | return getHubInfoWithFallback(root, true) |
| 102 | } |
| 103 | |
| 104 | // getHubInfoNoFallback returns cached hub information only. |
| 105 | // It never triggers expensive graph scans. |