@rango-dev/queue-manager-rango-preset 0.1.10-next.102 → 0.1.10-next.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers.d.ts.map +1 -1
- package/dist/queue-manager-rango-preset.cjs.development.js +3 -2
- package/dist/queue-manager-rango-preset.cjs.development.js.map +1 -1
- package/dist/queue-manager-rango-preset.cjs.production.min.js +1 -1
- package/dist/queue-manager-rango-preset.cjs.production.min.js.map +1 -1
- package/dist/queue-manager-rango-preset.esm.js +3 -2
- package/dist/queue-manager-rango-preset.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/actions/executeTransaction.ts +1 -1
- package/src/helpers.ts +3 -1
package/package.json
CHANGED
|
@@ -79,7 +79,7 @@ export async function executeTransaction(
|
|
|
79
79
|
*/
|
|
80
80
|
const needsToBlockQueue = isNeedBlockQueueForParallel(currentStep);
|
|
81
81
|
|
|
82
|
-
if (needsToBlockQueue && !isClaimed
|
|
82
|
+
if (needsToBlockQueue && !isClaimed) {
|
|
83
83
|
const blockedFor = {
|
|
84
84
|
reason: BlockReason.DEPENDS_ON_OTHER_QUEUES,
|
|
85
85
|
description: 'Waiting for other swaps to complete',
|
package/src/helpers.ts
CHANGED
|
@@ -746,6 +746,8 @@ export function onDependsOnOtherQueues(
|
|
|
746
746
|
const claimerId = claimedBy();
|
|
747
747
|
const isClaimedByAnyQueue = !!claimerId;
|
|
748
748
|
|
|
749
|
+
if (claimerId === queue.id) return;
|
|
750
|
+
|
|
749
751
|
// Check if any queue `claimed` before, if yes, we don't should do anything.
|
|
750
752
|
if (isClaimedByAnyQueue) {
|
|
751
753
|
// We need to keep the latest swap messages
|
|
@@ -781,7 +783,7 @@ export function onDependsOnOtherQueues(
|
|
|
781
783
|
resetClaimedBy: () => {
|
|
782
784
|
reset();
|
|
783
785
|
// TODO: Use key generator
|
|
784
|
-
retryOn(`${type}-${network}
|
|
786
|
+
retryOn(`${type}-${network}:${address}`, context.notifier, manager);
|
|
785
787
|
},
|
|
786
788
|
});
|
|
787
789
|
}
|