Skip to content

Commit

Permalink
Initialize()->New()
Browse files Browse the repository at this point in the history
  • Loading branch information
arussellsaw committed May 3, 2015
1 parent 1060921 commit 2e0c57d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import(
func main() {
var telemetry = new(telemetry.Telemetry)
telemetry.Initialize()
telemetry.New()
/*
The time.Duration() parameter is used to cull metrics older than the duration
Expand Down
4 changes: 2 additions & 2 deletions telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type point struct {
timestamp time.Time
}

//Initialize metric reporting
func (t *Telemetry) Initialize() error {
//New init metric reporting
func (t *Telemetry) New() error {
counter := new(Counter)
counterMetric := make(map[string]metric)
counter.metric = counterMetric
Expand Down

0 comments on commit 2e0c57d

Please sign in to comment.