missing comments

This commit is contained in:
Michael Baird 2017-05-01 11:04:53 -05:00
parent 25227787fc
commit 06665d048d
2 changed files with 5 additions and 1 deletions

View file

@ -28,7 +28,9 @@ const (
// DefaultInternalPort the port the nodes intercommunicate on.
DefaultInternalPort = "14000"
DefaultMetrics = "nop"
// DefaultMetrics sets the internal metrics to no op
DefaultMetrics = "nop"
)
// Config represents the configuration for the command.

View file

@ -107,6 +107,7 @@ func (c *ExpvarStatsClient) Count(name string, value int64) {
c.m.Add(name, value)
}
// CountWithCustomTags Tracks the number of times something occurs per second with custom tags
func (c *ExpvarStatsClient) CountWithCustomTags(name string, value int64, tags []string) {
c.m.Add(name, value)
}
@ -164,6 +165,7 @@ func (a MultiStatsClient) Count(name string, value int64) {
}
}
// CountWithCustomTags Tracks the number of times something occurs per second with custom tags
func (a MultiStatsClient) CountWithCustomTags(name string, value int64, tags []string) {
for _, c := range a {
c.CountWithCustomTags(name, value, tags)