]> git.giacomolli.uk - onehouse/blobdiff - driver/runner.go
Keep interrupted Modbus work a context stop
[onehouse] / driver / runner.go
index 287c333cb75cb7706cf6a82720bc23fd24ab5dc9..b40702bb0267331083e57789fbecf4cf4e13b8ab 100644 (file)
@@ -71,11 +71,6 @@ func Run(ctx context.Context, drivers []Driver, connected <-chan struct{}) error
        return errors.Join(failures...)
 }
 
        return errors.Join(failures...)
 }
 
-type driverResult struct {
-       index int
-       err   error
-}
-
 func stopOnly(err error, cancellation error) bool {
        joined, ok := err.(interface{ Unwrap() []error })
        if ok {
 func stopOnly(err error, cancellation error) bool {
        joined, ok := err.(interface{ Unwrap() []error })
        if ok {