mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
refactor: handling context in goroutines
This commit is contained in:
parent
ecb2ad786b
commit
1a2758ac5b
15 changed files with 161 additions and 140 deletions
|
@ -1,11 +1,13 @@
|
|||
package kernel
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/0xJacky/Nginx-UI/query"
|
||||
"github.com/uozi-tech/cosy/logger"
|
||||
)
|
||||
|
||||
func RegisterAcmeUser() {
|
||||
func RegisterAcmeUser(ctx context.Context) {
|
||||
a := query.AcmeUser
|
||||
users, _ := a.Where(a.RegisterOnStartup.Is(true)).Find()
|
||||
for _, user := range users {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue