fix: format code

pull/2639/head
renjun 2 years ago
parent 212ea7f3f7
commit 3433ff76a8
  1. 2
      middleware/singleflight/singleflight.go
  2. 8
      middleware/singleflight/singleflight_test.go

@ -3,9 +3,9 @@ package singleflight
import (
"context"
"fmt"
"github.com/go-kratos/kratos/v2/transport"
"github.com/go-kratos/kratos/v2/middleware"
"github.com/go-kratos/kratos/v2/transport"
"golang.org/x/sync/singleflight"
)

@ -2,12 +2,13 @@ package singleflight
import (
"context"
"github.com/go-kratos/kratos/v2/middleware"
"github.com/go-kratos/kratos/v2/transport"
"github.com/go-kratos/kratos/v2/transport/grpc"
"sync"
"testing"
"time"
"github.com/go-kratos/kratos/v2/middleware"
"github.com/go-kratos/kratos/v2/transport"
"github.com/go-kratos/kratos/v2/transport/grpc"
)
type testVali struct {
@ -76,7 +77,6 @@ func TestUse(t *testing.T) {
})
}
// 测试不使用单飞时
func TestNoUse(t *testing.T) {
var mu sync.Mutex

Loading…
Cancel
Save