add jwt files

This commit is contained in:
yanghao05
2023-01-30 19:56:31 +08:00
parent 591543d2a8
commit 81e33fa544
12 changed files with 1226 additions and 47 deletions

View File

@@ -0,0 +1,18 @@
package single_flight
import (
"atom/container"
"log"
"golang.org/x/sync/singleflight"
)
func init() {
if err := container.Container.Provide(NewSingleFlight); err != nil {
log.Fatal(err)
}
}
func NewSingleFlight() (*singleflight.Group, error) {
return &singleflight.Group{}, nil
}