mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 09:06:36 +08:00
fix(core): apply earlier pending plugins before later ones
Rescan the Use() list after each Load so a consumer registered before its provider still runs before later consumers that became ready in the same pass.
This commit is contained in:
@@ -300,6 +300,9 @@ func (a *App) reconcileLocked() error {
|
||||
return fmt.Errorf("core: load fiber %q failed: %w", f.Name(), err)
|
||||
}
|
||||
progress = true
|
||||
// Rescan from the head of the Use() list so earlier pending
|
||||
// plugins run before later ones that became ready in this pass.
|
||||
break
|
||||
}
|
||||
}
|
||||
if !progress {
|
||||
|
||||
Reference in New Issue
Block a user