Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjarvo committed Oct 28, 2017
1 parent 747f51e commit 61e5b6f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core/http.go
Expand Up @@ -212,7 +212,7 @@ type HTTPResult struct {
// Body is the last body (if any) received.
Body string

// Attemts is the number of attempts made.
// Attempts is the number of attempts made.
Attempts int

// Error is the most recent error message.
Expand Down
2 changes: 1 addition & 1 deletion core/state_indexed.go
Expand Up @@ -392,7 +392,7 @@ func (s *IndexedState) Rem(ctx *Context, id string) (bool, error) {
if err != nil {
Log(ERROR, ctx, "IndexedState.Rem", "state", s.Name, "error", err,
"id", id, "when", "remHook")
// ToDo: Consider queueing, falling through, ...
// ToDo: Consider queuing, falling through, ...
return false, err
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/state_linear.go
Expand Up @@ -200,7 +200,7 @@ func (s *LinearState) Rem(ctx *Context, id string) (bool, error) {
if err := s.remHook(ctx, s, id); err != nil {
Log(ERROR, ctx, "LinearState.Rem", "state", s.Name, "error", err,
"id", id, "when", "remHook")
// ToDo: Consider queueing, falling through, ...
// ToDo: Consider queuing, falling through, ...
return false, err
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/timers.go
Expand Up @@ -116,7 +116,7 @@ func (t *Timer) Stop() int64 {
// StopTag computes the elapsed time (in nanosecs) and stores it in
// the history.
//
// This method also logs (level -1) the elasped time with the given
// This method also logs (level -1) the elapsed time with the given
// tag.
func (t *Timer) StopTag(tag string) int64 {
if t == &NoTimer {
Expand Down
2 changes: 1 addition & 1 deletion core/util.go
Expand Up @@ -223,7 +223,7 @@ var IncCounterBase = uint64(0)
// CheckErr is a utility function to log an error if any.
//
// Useful in goroutines or in other places where there is no caller to
// bother but something inconvenient might have occured. Ideally, we
// bother but something inconvenient might have occurred. Ideally, we
// never use this function.
func CheckErr(ctx *Context, op string, err error) {
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions cron/cron.go
Expand Up @@ -29,13 +29,13 @@ package cron
// 2. Our Rem() method does a linear scan over pending jobs (instead
// of using a map). Don't want too many jobs.
//
// 3. We can do efficient location-specific cron crontrol (pause,
// 3. We can do efficient location-specific cron control (pause,
// resume, size limit).
//
// 4. Maybe problem containment. Perhaps a problematic Cron instance
// won't always create problems for other cron instances.
//
// However, this implemention does provide some coarse yet efficient
// However, this implementation does provide some coarse yet efficient
// global control via CronBroadcasters. The default
// SysCronBroadcaster can be used to suspend and resume all cron
// processing across all locations.
Expand Down
4 changes: 2 additions & 2 deletions cron/generic.go
Expand Up @@ -27,7 +27,7 @@ import (
// cron can issue as a cron job.
//
// We'll likely need to add to this struct (or another) to support
// additional HTTP request propeties such as timeouts.
// additional HTTP request properties such as timeouts.
type Work struct {
// URL is the target for the request.
URL string `json:"url"`
Expand Down Expand Up @@ -113,7 +113,7 @@ type Cronner interface {
//
// A persistent Cronner will not get updates when Locations
// are loaded (since such a Cronner would have gotten updates
// when the API calls occured).
// when the API calls occurred).
Persistent() bool
}

Expand Down

0 comments on commit 61e5b6f

Please sign in to comment.