Pin mesh-sdk at issue 1370's commit and read the phase removed by its name (review round 1)
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"time"
|
||||
|
||||
stdio "git.novox.be/novox/mesh-sdk/go"
|
||||
sdk "git.novox.be/novox/mesh-sdk/go/delivery"
|
||||
)
|
||||
|
||||
// The gate acts only while it holds the seat, and carries today's state over when it first holds it (novox/hq ADR 0450
|
||||
@@ -236,7 +237,7 @@ func occupantsOf(assignments, haves seatBucket) ([]string, error) {
|
||||
var h struct {
|
||||
Phase string `json:"phase"`
|
||||
}
|
||||
if err := json.Unmarshal(raw, &h); err != nil || h.Phase != "removed" {
|
||||
if err := json.Unmarshal(raw, &h); err != nil || h.Phase != string(sdk.PhaseRemoved) {
|
||||
who = append(who, "the node-engine of "+node+" has it")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user