Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
greenhat616 committed Sep 18, 2023
1 parent 9452550 commit caac304
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion consumers/start.go
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ func handleErr(e error) {
}

func signalIntHandler(instance *rabbitmq.Instance) {
c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
go func() {
<-c
4 changes: 2 additions & 2 deletions django/django.go
Original file line number Diff line number Diff line change
@@ -15,14 +15,14 @@ var (
)

// init initializes pongo2 template loader.
// It loads templates from embededFS and local filesystem.
// It loads templates from embeddedFS and local filesystem.
// It also loads globals from globalsCtxProviders.
func init() {
defer zap.L().Sync()
var err error
tplPublicDir := path.Join(must[string](executablePath), "resources/")
loader, err := pongo2.NewHttpFileSystemLoader(http.FS(priorityFS{
embededFS,
embeddedFS,
os.DirFS(tplPublicDir),
}), "./template")
if err != nil {
4 changes: 2 additions & 2 deletions django/embed.go
Original file line number Diff line number Diff line change
@@ -2,5 +2,5 @@ package django

import "embed"

//go:embed template/**/*.django template/*.django
var embededFS embed.FS
//go:embed all:template
var embeddedFS embed.FS

0 comments on commit caac304

Please sign in to comment.