Z14 zfs-follower: the follower starts the apply on the events that end a wait and keeps its findings in its own state
Builds: design 42 zfs-owns-zfs §18, §27, A-10, A-16, A-32
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.novox.be/novox/mesh-contracts/health-and-repair/go/clients/meshconditionsclient"
|
||||
stdio "git.novox.be/novox/mesh-sdk/go"
|
||||
"git.novox.be/novox/mesh-sdk/go/buscalls"
|
||||
"git.novox.be/novox/mesh-sdk/go/process"
|
||||
@@ -48,6 +49,7 @@ func (m *Machine) JoinBus() func() {
|
||||
}
|
||||
m.Emit = func(kind string, body any) error { return c.Emit(kind, body, stdio.EmitOptions{}) }
|
||||
m.States = busStates{c}
|
||||
m.Findings = meshconditionsclient.FindingWriter{State: c.State(StateFindings)}
|
||||
m.Call = c.Call
|
||||
return c.Close
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user