mirror of
https://codeberg.org/Hyperpipe/hyperpipe-backend
synced 2024-12-06 19:26:30 +01:00
add env var for prefork
This commit is contained in:
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user