Browse Source

Minor "go tool vet" cleanups

pull/290/head
Julius Volz 12 years ago
parent
commit
558281890b
  1. 2
      retrieval/format/processor0_0_1_test.go
  2. 2
      retrieval/format/processor0_0_2_test.go
  3. 1
      storage/metric/tiered.go

2
retrieval/format/processor0_0_1_test.go

@ -131,7 +131,7 @@ func testProcessor001Process(t test.Tester) {
reader, err := os.Open(path.Join("fixtures", scenario.in)) reader, err := os.Open(path.Join("fixtures", scenario.in))
if err != nil { if err != nil {
t.Fatalf("%d. couldn't open scenario input file %s: %s", scenario.in, err) t.Fatalf("%d. couldn't open scenario input file %s: %s", i, scenario.in, err)
} }
err = Processor001.Process(reader, time.Now(), scenario.baseLabels, inputChannel) err = Processor001.Process(reader, time.Now(), scenario.baseLabels, inputChannel)

2
retrieval/format/processor0_0_2_test.go

@ -131,7 +131,7 @@ func testProcessor002Process(t test.Tester) {
reader, err := os.Open(path.Join("fixtures", scenario.in)) reader, err := os.Open(path.Join("fixtures", scenario.in))
if err != nil { if err != nil {
t.Fatalf("%d. couldn't open scenario input file %s: %s", scenario.in, err) t.Fatalf("%d. couldn't open scenario input file %s: %s", i, scenario.in, err)
} }
err = Processor002.Process(reader, time.Now(), scenario.baseLabels, inputChannel) err = Processor002.Process(reader, time.Now(), scenario.baseLabels, inputChannel)

1
storage/metric/tiered.go

@ -217,7 +217,6 @@ func (t *TieredStorage) Serve(started chan<- bool) {
t.mu.Lock() t.mu.Lock()
if t.state != tieredStorageStarting { if t.state != tieredStorageStarting {
panic("Illegal State: Attempted to restart TieredStorage.") panic("Illegal State: Attempted to restart TieredStorage.")
return
} }
t.state = tieredStorageServing t.state = tieredStorageServing

Loading…
Cancel
Save