Update examples to match

This commit is contained in:
Sasha Koshka
2023-05-26 20:27:59 -04:00
parent 5d5d58544f
commit 9025844212
6 changed files with 18 additions and 18 deletions

View File

@@ -26,8 +26,8 @@ func (service Service) Run () error {
// set up routine manager
manager := routines.Manager { RestartDeadline: time.Second * 8 }
manager.Routines = make([]routines.Routine, len(service))
for index, mount := range manager.Routines {
manager.Routines[index] = mount
for index, mount := range service {
manager.Routines[index] = mount.Run
}
// send it