Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statsd: fix spelling errors #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions statsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ package statsd
import (
"bufio"
"fmt"
. "github.com/visionmedia/go-debug"
"io"
"math/rand"
"net"
"sync"
"time"

. "github.com/visionmedia/go-debug"
)

var debug = Debug("statsd")

const defaultBufSize = 512

// Client is statsd client representing a
// onnection to a statsd server.
// Client is a statsd client representing a connection to a statsd server.
type Client struct {
conn net.Conn
buf *bufio.Writer
Expand Down Expand Up @@ -158,7 +158,7 @@ func (c *Client) Annotate(name string, value string, args ...interface{}) error
return c.send(name, 1, "%s|a", fmt.Sprintf(value, args...))
}

// Unique records unique occurences of events.
// Unique records unique occurrences of events.
func (c *Client) Unique(name string, value int, rate float64) error {
return c.send(name, rate, "%d|s", value)
}
Expand Down