Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcarnie committed Jun 6, 2014
1 parent 6d82eb1 commit e93a73c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package metrics
import (
"io/ioutil"
"log"
"sort"
"sync"
"testing"
"sort"
)

const FANOUT = 128
Expand Down Expand Up @@ -109,14 +109,14 @@ func BenchmarkMetrics(b *testing.B) {

func TestMetricsSorting(t *testing.T) {
var data = metrics{
{name:"zzz"},
{name:"bbb"},
{name:"fff"},
{name:"ggg"},
{name: "zzz"},
{name: "bbb"},
{name: "fff"},
{name: "ggg"},
}

sort.Sort(data)
for i, d := range []string{"bbb","fff","ggg","zzz"} {
for i, d := range []string{"bbb", "fff", "ggg", "zzz"} {
if data[i].name != d {
t.Fail()
}
Expand Down
2 changes: 1 addition & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package metrics
import (
"fmt"
"io"
"time"
"sort"
"time"
)

// Output each metric in the given registry periodically using the given
Expand Down

0 comments on commit e93a73c

Please sign in to comment.