Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
janczer committed Jan 15, 2017
1 parent 38efbf1 commit a65fcd4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/cdata/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion mgmt/rest/client/client_tribe_func_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion mgmt/rest/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/schedule/cron_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/schedule/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/schedule/simple_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion pkg/schedule/windowed_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a65fcd4

Please sign in to comment.