mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Bind ErrorQueueStore to ErrorQueueActions
This commit is contained in:
parent
0d6b3710f7
commit
9b54a75e27
@ -30,6 +30,7 @@ class ErrorQueueStore {
|
|||||||
this.exportPublicMethods({
|
this.exportPublicMethods({
|
||||||
getNextError: this.getNextError
|
getNextError: this.getNextError
|
||||||
});
|
});
|
||||||
|
this.bindActions(ErrorQueueActions);
|
||||||
}
|
}
|
||||||
|
|
||||||
getNextError(type) {
|
getNextError(type) {
|
||||||
@ -40,7 +41,7 @@ class ErrorQueueStore {
|
|||||||
return queue[index];
|
return queue[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
onShiftQueue(type) {
|
onShiftErrorQueue(type) {
|
||||||
const errorQueue = this.errorQueues[type];
|
const errorQueue = this.errorQueues[type];
|
||||||
const { queue, loop } = errorQueue;
|
const { queue, loop } = errorQueue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user