Fix spelling mistakes (#4888)
This commit is contained in:
committed by
Daniel Nelson
parent
1ec12ba6ad
commit
17360f079c
@@ -183,7 +183,7 @@ func escapeObject(m map[string]interface{}) (string, error) {
|
||||
return `{` + strings.Join(pairs, ", ") + `}`, nil
|
||||
}
|
||||
|
||||
// escapeString wraps s in the given quote string and replaces all occurences
|
||||
// escapeString wraps s in the given quote string and replaces all occurrences
|
||||
// of it inside of s with a double quote.
|
||||
func escapeString(s string, quote string) string {
|
||||
return quote + strings.Replace(s, quote, quote+quote, -1) + quote
|
||||
@@ -191,7 +191,7 @@ func escapeString(s string, quote string) string {
|
||||
|
||||
// hashID returns a cryptographic hash int64 hash that includes the metric name
|
||||
// and tags. It's used instead of m.HashID() because it's not considered stable
|
||||
// and because a cryptogtaphic hash makes more sense for the use case of
|
||||
// and because a cryptographic hash makes more sense for the use case of
|
||||
// deduplication.
|
||||
// [1] https://github.com/influxdata/telegraf/pull/3210#discussion_r148411201
|
||||
func hashID(m telegraf.Metric) int64 {
|
||||
|
||||
@@ -173,7 +173,7 @@ func (g *Graphite) send(batch []byte) error {
|
||||
if _, e := g.conns[n].Write(batch); e != nil {
|
||||
// Error
|
||||
log.Println("E! Graphite Error: " + e.Error())
|
||||
// Close explicitely
|
||||
// Close explicitly
|
||||
g.conns[n].Close()
|
||||
// Let's try the next one
|
||||
} else {
|
||||
|
||||
@@ -220,7 +220,7 @@ func (c *httpClient) Database() string {
|
||||
return c.database
|
||||
}
|
||||
|
||||
// CreateDatabase attemps to create a new database in the InfluxDB server.
|
||||
// CreateDatabase attempts to create a new database in the InfluxDB server.
|
||||
// Note that some names are not allowed by the server, notably those with
|
||||
// non-printable characters or slashes.
|
||||
func (c *httpClient) CreateDatabase(ctx context.Context) error {
|
||||
|
||||
Reference in New Issue
Block a user