单飞,删除无用代码

pull/2639/head
renjun 2 years ago
parent 8988d1444f
commit bdb1762feb
  1. 6
      middleware/singleflight/singleflight_test.go

@ -2,14 +2,12 @@ package singleflight
import ( import (
"context" "context"
"github.com/go-kratos/kratos/v2/middleware"
"github.com/go-kratos/kratos/v2/transport" "github.com/go-kratos/kratos/v2/transport"
"github.com/go-kratos/kratos/v2/transport/grpc" "github.com/go-kratos/kratos/v2/transport/grpc"
"sync" "sync"
"testing" "testing"
"time" "time"
"xiaozhu/pkg/convert"
"github.com/go-kratos/kratos/v2/middleware"
) )
type testVali struct { type testVali struct {
@ -90,7 +88,7 @@ func TestNoUse(t *testing.T) {
callNum++ callNum++
mu.Unlock() mu.Unlock()
time.Sleep(1*time.Second) time.Sleep(1*time.Second)
return convert.ToInt(in.in), nil return in.out, nil
} }
tests := []testVali{ tests := []testVali{

Loading…
Cancel
Save