forked from lf-edge/eve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pillar/zedagent,zedcloud: create separate deferred context for the LO…
…C reqs LOC has different URL, so controller and LOC deferred requests can't be placed into the same queue due to the same requests keys. Having two destinations (controller + LOC), the second sender overrides a deferred item, so first one destination will be never reached. First attempt to fix this was made here: 62b00e2 ("zedcloud/deferred: respect URL argument as a key on starting new deferred") But this introduces more problems then fixes them (for example `RemoveDeferred()` was not covered at all). This is the proper way to deal with different destinations. Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
- Loading branch information
1 parent
fa86bc1
commit 713af84
Showing
2 changed files
with
16 additions
and
8 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