From b039747887833e811e82d49a5d07cdbbf517fb17 Mon Sep 17 00:00:00 2001 From: Travis Turner Date: Fri, 10 Nov 2017 10:45:56 -0600 Subject: [PATCH] fix a few typos --- cache.go | 2 +- diagnostics/diagnostics.go | 2 +- server.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cache.go b/cache.go index 2e66d35b9..a6f37a409 100644 --- a/cache.go +++ b/cache.go @@ -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() diff --git a/diagnostics/diagnostics.go b/diagnostics/diagnostics.go index c653a7052..6bcd433d3 100644 --- a/diagnostics/diagnostics.go +++ b/diagnostics/diagnostics.go @@ -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 diff --git a/server.go b/server.go index 610fe6255..0d55e7c47 100644 --- a/server.go +++ b/server.go @@ -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")