Fix high prio recommendations, add error / health screen
This commit is contained in:
6
main.go
6
main.go
@@ -123,9 +123,12 @@ func main() {
|
||||
exitf("configuration: %v", err)
|
||||
}
|
||||
}
|
||||
service = NewCachedGitHubService(client, cacheDir, config.Cache.MaxAge.Duration)
|
||||
service = NewCachedGitHubService(
|
||||
client, cacheDir, config.Cache.MaxAge.Duration, config.Cache.MaxEntries,
|
||||
)
|
||||
}
|
||||
statePath := filepath.Join(filepath.Dir(*configFile), "state.json")
|
||||
draftPath := filepath.Join(filepath.Dir(*configFile), "drafts.json")
|
||||
app := NewAppWithSettings(
|
||||
service, owner, name, config.ShowAll, config.Limit, config.RefreshInterval.Duration,
|
||||
AppSettings{
|
||||
@@ -134,6 +137,7 @@ func main() {
|
||||
DashboardMode: config.Display.DashboardMode,
|
||||
CompactReviews: config.Display.CompactReviews,
|
||||
ReadState: loadReadState(statePath),
|
||||
Drafts: loadDraftStore(draftPath),
|
||||
PathScroll: config.Paths.Scroll,
|
||||
PathScrollInterval: config.Paths.ScrollInterval.Duration,
|
||||
ThreadStatusOrder: config.Threads.StatusOrder,
|
||||
|
||||
Reference in New Issue
Block a user