mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-07-03 10:47:17 +02:00
Remove unused code
This commit is contained in:
parent
4fbbc5818e
commit
bcefb76275
@ -44,8 +44,6 @@ type daemon struct {
|
|||||||
tasks map[LogID]task
|
tasks map[LogID]task
|
||||||
logsLoadedAt time.Time
|
logsLoadedAt time.Time
|
||||||
logListToken *loglist.ModificationToken
|
logListToken *loglist.ModificationToken
|
||||||
logListError string
|
|
||||||
logListErrorAt time.Time
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (daemon *daemon) healthCheck(ctx context.Context) error {
|
func (daemon *daemon) healthCheck(ctx context.Context) error {
|
||||||
@ -61,8 +59,6 @@ func (daemon *daemon) healthCheck(ctx context.Context) error {
|
|||||||
info := &StaleLogListInfo{
|
info := &StaleLogListInfo{
|
||||||
Source: daemon.config.LogListSource,
|
Source: daemon.config.LogListSource,
|
||||||
LastSuccess: daemon.logsLoadedAt,
|
LastSuccess: daemon.logsLoadedAt,
|
||||||
LastError: daemon.logListError,
|
|
||||||
LastErrorTime: daemon.logListErrorAt,
|
|
||||||
RecentErrors: errors,
|
RecentErrors: errors,
|
||||||
ErrorsDir: errorsDir,
|
ErrorsDir: errorsDir,
|
||||||
}
|
}
|
||||||
@ -153,8 +149,6 @@ func (daemon *daemon) run(ctx context.Context) error {
|
|||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
case <-reloadLogListTicker.C:
|
case <-reloadLogListTicker.C:
|
||||||
if err := daemon.loadLogList(ctx); err != nil {
|
if err := daemon.loadLogList(ctx); err != nil {
|
||||||
daemon.logListError = err.Error()
|
|
||||||
daemon.logListErrorAt = time.Now()
|
|
||||||
recordError(ctx, daemon.config, nil, fmt.Errorf("error reloading log list (will try again later): %w", err))
|
recordError(ctx, daemon.config, nil, fmt.Errorf("error reloading log list (will try again later): %w", err))
|
||||||
}
|
}
|
||||||
reloadLogListTicker.Reset(reloadLogListInterval())
|
reloadLogListTicker.Reset(reloadLogListInterval())
|
||||||
|
@ -114,8 +114,6 @@ type BacklogInfo struct {
|
|||||||
type StaleLogListInfo struct {
|
type StaleLogListInfo struct {
|
||||||
Source string
|
Source string
|
||||||
LastSuccess time.Time
|
LastSuccess time.Time
|
||||||
LastError string
|
|
||||||
LastErrorTime time.Time
|
|
||||||
RecentErrors string
|
RecentErrors string
|
||||||
ErrorsDir string
|
ErrorsDir string
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user