Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
rkfg committed Dec 17, 2022
1 parent cefbff4 commit 189f124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (r *regolancer) loadNodeCache(filename string, exp int, doLock bool) error
defer l.Unlock()

if err != nil {
return fmt.Errorf("error take shared lock on file %s: %s", filename, err)
return fmt.Errorf("error taking shared lock on file %s: %s", filename, err)
}
}
f, err := os.Open(filename)
Expand Down Expand Up @@ -69,7 +69,7 @@ func (r *regolancer) saveNodeCache(filename string, exp int) error {
defer l.Unlock()

if err != nil {
return fmt.Errorf("error take exclusive lock on file %s: %s", filename, err)
return fmt.Errorf("error taking exclusive lock on file %s: %s", filename, err)
}

old := regolancer{nodeCache: map[string]cachedNodeInfo{}}
Expand Down
2 changes: 1 addition & 1 deletion payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (r *regolancer) pay(ctx context.Context, amount int64, minAmount int64,
defer l.Unlock()

if err != nil {
return fmt.Errorf("error take exclusive lock on file %s: %s", r.statFilename, err)
return fmt.Errorf("error taking exclusive lock on file %s: %s", r.statFilename, err)
}

_, err = os.Stat(r.statFilename)
Expand Down

0 comments on commit 189f124

Please sign in to comment.