fix a few typos

This commit is contained in:
Travis Turner 2017-11-10 10:45:56 -06:00
parent 9e458aecd5
commit b039747887
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9
3 changed files with 3 additions and 3 deletions

View file

@ -215,7 +215,7 @@ func (c *RankCache) IDs() []uint64 {
return a
}
// Invalidate recalculates the the entries by rank.
// Invalidate recalculates the entries by rank.
func (c *RankCache) Invalidate() {
c.mu.Lock()
defer c.mu.Unlock()

View file

@ -175,7 +175,7 @@ func (d *Diagnostics) CompareVersion(value string) error {
} else if localVersion[1] < currentVersion[1] { // Minor
return fmt.Errorf("Warning: You are running Pilosa %s. The latest Minor release is %s: https://github.com/pilosa/pilosa/releases", d.version, value)
} else if localVersion[2] < currentVersion[2] { // Patch
return fmt.Errorf("There is a new patch release of Pilosa availbale: %s: https://github.com/pilosa/pilosa/releases", value)
return fmt.Errorf("There is a new patch release of Pilosa available: %s: https://github.com/pilosa/pilosa/releases", value)
}
return nil

View file

@ -497,7 +497,7 @@ func (s *Server) checkMaxSlices(scheme string, hostPort string) (map[string]uint
return s.defaultClient.MaxSliceByIndex(ctx)
}
// monitorDiagnostics periodically polls the the Pilosa Indexes for cluster info.
// monitorDiagnostics periodically polls the Pilosa Indexes for cluster info.
func (s *Server) monitorDiagnostics() {
if s.DiagnosticInterval <= 0 {
s.Logger().Printf("diagnostics disabled")