Announce an acknowledged node failure on the bus
Clearing a node's last error on the engine published nothing, so a second browser kept the marker until its next snapshot. One event carries the qualified node; the receiving client drops the marker without refetching.
This commit is contained in:
@@ -167,6 +167,10 @@ export const liveStore = {
|
||||
getFailure(nodeId: string) {
|
||||
return failures.get(nodeId)
|
||||
},
|
||||
/** Drop the marker for a failure the engine has already been told about. */
|
||||
clearFailure(nodeId: string) {
|
||||
if (failures.delete(nodeId)) notify(`failure:${nodeId}`)
|
||||
},
|
||||
/**
|
||||
* Dismiss a node's failure, here and on the engine.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user