Update examples to match
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user