From 165096bef0c7880d3d034c83a72ab7d8605c50f1 Mon Sep 17 00:00:00 2001 From: Nathan Baum Date: Thu, 14 Feb 2019 20:12:53 +0000 Subject: [PATCH] refactor(api): fix a typo (#2712) Just a trivial spelling error. --- api/cmd/portainer/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/cmd/portainer/main.go b/api/cmd/portainer/main.go index 09e223593..10d83c51e 100644 --- a/api/cmd/portainer/main.go +++ b/api/cmd/portainer/main.go @@ -175,7 +175,7 @@ func loadEndpointSyncSystemSchedule(jobScheduler portainer.JobScheduler, schedul endpointSyncJob := &portainer.EndpointSyncJob{} - endointSyncSchedule := &portainer.Schedule{ + endpointSyncSchedule := &portainer.Schedule{ ID: portainer.ScheduleID(scheduleService.GetNextIdentifier()), Name: "system_endpointsync", CronExpression: "@every " + *flags.SyncInterval, @@ -186,14 +186,14 @@ func loadEndpointSyncSystemSchedule(jobScheduler portainer.JobScheduler, schedul } endpointSyncJobContext := cron.NewEndpointSyncJobContext(endpointService, *flags.ExternalEndpoints) - endpointSyncJobRunner := cron.NewEndpointSyncJobRunner(endointSyncSchedule, endpointSyncJobContext) + endpointSyncJobRunner := cron.NewEndpointSyncJobRunner(endpointSyncSchedule, endpointSyncJobContext) err = jobScheduler.ScheduleJob(endpointSyncJobRunner) if err != nil { return err } - return scheduleService.CreateSchedule(endointSyncSchedule) + return scheduleService.CreateSchedule(endpointSyncSchedule) } func loadSchedulesFromDatabase(jobScheduler portainer.JobScheduler, jobService portainer.JobService, scheduleService portainer.ScheduleService, endpointService portainer.EndpointService, fileService portainer.FileService) error {