Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
Argelbargel committed Sep 23, 2023
1 parent b21520b commit b13c544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/agent/storage/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ func (m *Manager) AddStorage(controller storageController) {
func (m *Manager) ScheduleSnapshot(ctx context.Context, lastSnapshotTime time.Time, defaults StorageConfigDefaults) time.Time {
nextSnapshot := time.Time{}

for _, uploader := range m.controllers {
candidate := uploader.ScheduleSnapshot(ctx, lastSnapshotTime, defaults)
for _, controller := range m.controllers {
candidate := controller.ScheduleSnapshot(ctx, lastSnapshotTime, defaults)
if nextSnapshot.IsZero() || candidate.Before(nextSnapshot) {
nextSnapshot = candidate
}
Expand Down

0 comments on commit b13c544

Please sign in to comment.