瀏覽代碼

fix gofmt for go 1.12

mihasya 6 年之前
父節點
當前提交
cac0b30c25
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      registry_test.go

+ 2 - 2
registry_test.go

@@ -379,7 +379,7 @@ func TestConcurrentRegistryAccess(t *testing.T) {
 }
 }
 
 
 // exercise race detector
 // exercise race detector
-func TestRegisterAndRegisteredConcurrency(t *testing.T)  {
+func TestRegisterAndRegisteredConcurrency(t *testing.T) {
 	r := NewRegistry()
 	r := NewRegistry()
 	wg := &sync.WaitGroup{}
 	wg := &sync.WaitGroup{}
 	wg.Add(1)
 	wg.Add(1)
@@ -390,4 +390,4 @@ func TestRegisterAndRegisteredConcurrency(t *testing.T)  {
 	}(r, wg)
 	}(r, wg)
 	r.Register("foo", NewCounter())
 	r.Register("foo", NewCounter())
 	wg.Wait()
 	wg.Wait()
-}
+}