diff --git a/core/cdata/tree.go b/core/cdata/tree.go index b9d656b6f..cf0e41a9d 100644 --- a/core/cdata/tree.go +++ b/core/cdata/tree.go @@ -27,7 +27,7 @@ import ( ) // Allows adding of config data by namespace and retrieving of data from tree -// at a specific namespace (merging the relevant hiearchy). Uses pkg.ConfigTree. +// at a specific namespace (merging the relevant hierarchy). Uses pkg.ConfigTree. type ConfigDataTree struct { cTree *ctree.ConfigTree } diff --git a/mgmt/rest/client/client_tribe_func_test.go b/mgmt/rest/client/client_tribe_func_test.go index cad3580bb..e1c3fc1eb 100644 --- a/mgmt/rest/client/client_tribe_func_test.go +++ b/mgmt/rest/client/client_tribe_func_test.go @@ -46,7 +46,7 @@ func getPort() int { // This attempts to use net.Listen to find an open port since // the tribe config has to know of one BEFORE the REST API starts... count := 0 - // This will loop 1000 times before panicing + // This will loop 1000 times before panicking // If it finds a port it will return out of the function for count < 1000 { ln, err := net.Listen("tcp", "127.0.0.1:0") diff --git a/mgmt/rest/client/config.go b/mgmt/rest/client/config.go index 1eea17a2b..a87a3e726 100644 --- a/mgmt/rest/client/config.go +++ b/mgmt/rest/client/config.go @@ -31,7 +31,7 @@ import ( // GetPluginConfig retrieves the merged plugin config given the type of plugin, // name and version. If plugin type, name and version are all empty strings // the plugin config for "all" plugins will be returned. If the plugin type is -// provided and the name and version are empy strings the config for that plugin +// provided and the name and version are empty strings the config for that plugin // type will be returned. So on and so forth for the rest of the arguments. func (c *Client) GetPluginConfig(pluginType, name, version string) *GetPluginConfigResult { r := &GetPluginConfigResult{} diff --git a/pkg/schedule/cron_schedule.go b/pkg/schedule/cron_schedule.go index e03db15fb..103cccb8c 100644 --- a/pkg/schedule/cron_schedule.go +++ b/pkg/schedule/cron_schedule.go @@ -56,7 +56,7 @@ func (c *CronSchedule) GetState() ScheduleState { return c.state } -// Validate returns error if cron entry dosn't match crontab format +// Validate returns error if cron entry doesn't match crontab format func (c *CronSchedule) Validate() error { if c.entry == "" { return ErrMissingCronEntry diff --git a/pkg/schedule/schedule.go b/pkg/schedule/schedule.go index 23388b5ba..dbd390d8b 100644 --- a/pkg/schedule/schedule.go +++ b/pkg/schedule/schedule.go @@ -55,7 +55,7 @@ func waitOnInterval(last time.Time, i time.Duration) (uint, time.Time) { } // Get the difference in time.Duration since last in nanoseconds (int64) timeDiff := time.Since(last).Nanoseconds() - // cache our schedule interval in nanseconds + // cache our schedule interval in nanoseconds nanoInterval := i.Nanoseconds() // use modulo operation to obtain the remainder of time over last interval remainder := timeDiff % nanoInterval diff --git a/pkg/schedule/simple_schedule.go b/pkg/schedule/simple_schedule.go index 40ed9792f..f70b7cfb0 100644 --- a/pkg/schedule/simple_schedule.go +++ b/pkg/schedule/simple_schedule.go @@ -59,7 +59,7 @@ func (s *SimpleScheduleResponse) Missed() uint { return s.missed } -// LastTime retruns the last response time +// LastTime returns the last response time func (s *SimpleScheduleResponse) LastTime() time.Time { return s.lastTime } diff --git a/pkg/schedule/windowed_schedule.go b/pkg/schedule/windowed_schedule.go index abb4f16a0..024b68cd9 100644 --- a/pkg/schedule/windowed_schedule.go +++ b/pkg/schedule/windowed_schedule.go @@ -82,7 +82,7 @@ func (w *WindowedSchedule) Wait(last time.Time) Response { } // If within the window we wait our interval and return - // otherwise we exit with a compleled state. + // otherwise we exit with a completed state. var m uint // Do we even have a stop time? if w.StopTime != nil {