Skip to content
Snippets Groups Projects
Commit c94b38cb authored by Kamil Kisiel's avatar Kamil Kisiel
Browse files

Fixed documentation typo

parent 8cf6ad33
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ import (
const DefaultConsoleAddr = ":8126"
// ConsoleServer is an object that listens for telnet connection on a TCP address Addr
// and provides a console interface to a manage a MetricsAggregator
// and provides a console interface to a manage a MetricAggregator
type ConsoleServer struct {
Addr string
Aggregator *MetricAggregator
......
......@@ -4,9 +4,17 @@ import (
"bytes"
"fmt"
"net"
"regexp"
"time"
)
// Regular expressions used for bucket name normalization
var (
regSpaces = regexp.MustCompile("\\s+")
regSlashes = regexp.MustCompile("\\/")
regInvalid = regexp.MustCompile("[^a-zA-Z_\\-0-9\\.]")
)
// normalizeBucketName cleans up a bucket name by replacing or translating invalid characters
func normalizeBucketName(name string) string {
nospaces := regSpaces.ReplaceAllString(name, "_")
......
......@@ -3,14 +3,6 @@ package statsd
import (
"bytes"
"fmt"
"regexp"
)
// Regular expressions used for bucket name normalization
var (
regSpaces = regexp.MustCompile("\\s+")
regSlashes = regexp.MustCompile("\\/")
regInvalid = regexp.MustCompile("[^a-zA-Z_\\-0-9\\.]")
)
type MetricType float64
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment