forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "lwaftr: keep full config in worker setup"
This reverts commit d4a1083. Instead we attach instance device/queue_id meta-data to the worker configs using a setmetatable, and ensure that all config manipulation based on the worker queue id is performed within the manager process. Specifically, this means moving select_instance() from apps.lwaftr.lwaftr to apps.lwaftr.lwutil and calling it from program.lwaftr.setup. (I also took the liberty to make this function pure to avoid future confusion on my end.)
- Loading branch information
Showing
4 changed files
with
24 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters