add env var for prefork

This commit is contained in:
Shiny Nematoda
2023-07-30 09:56:44 +00:00
parent 5d440a38f5
commit 34ac6a38a3
5 changed files with 43 additions and 76 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ func parseNext(raw string) Next {
}
}
func GetNext(id, queue string) (Next, int) {
func GetNext(id string, skip bool) (Next, int) {
pldata, err := json.Marshal(utils.TypeNext(id, ""))
if err != nil {
@@ -94,7 +94,7 @@ func GetNext(id, queue string) (Next, int) {
return Next{Err: err}, plstatus
}
if queue == "avoid" {
if skip {
return parseNext(plraw), plstatus
}