Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mslipper committed Oct 23, 2024
1 parent 09f93ea commit 7503c36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bailiff/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func main() {
ctx, cancel := context.WithCancel(cliCtx.Context)
defer cancel()

go wl.SyncPeriodically(ctx, time.Minute)
go wl.SyncPeriodically(ctx, l, time.Minute)

metricsCfg := opmetrics.ReadCLIConfig(cliCtx)
if metricsCfg.Enabled {
Expand Down
2 changes: 2 additions & 0 deletions internal/pkg/bailiff/whitelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ func (m *TeamWhitelist) SyncPeriodically(ctx context.Context, lgr log.Logger, in
for {
if err := m.sync(ctx); err != nil {
lgr.Error("failed to sync whitelist", "error", err)
} else {
lgr.Info("whitelist synced")
}

select {
Expand Down

0 comments on commit 7503c36

Please sign in to comment.